]> granicus.if.org Git - postgresql/commitdiff
Applied patch from Fernando Nasser to fix up small type error
authorBarry Lind <barry@xythos.com>
Thu, 29 May 2003 04:52:44 +0000 (04:52 +0000)
committerBarry Lind <barry@xythos.com>
Thu, 29 May 2003 04:52:44 +0000 (04:52 +0000)
src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java

index a1c9007fb26d2729a763e7726f86492e28b68797..93d4fcae33a669910a2398f7b0af5c9f2d56589c 100644 (file)
@@ -25,7 +25,7 @@ import java.sql.Timestamp;
 import java.sql.Types;
 import java.util.Vector;
 
-/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.23 2003/05/29 04:48:33 barry Exp $
+/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.24 2003/05/29 04:52:44 barry Exp $
  * This class defines methods of the jdbc1 specification.  This class is
  * extended by org.postgresql.jdbc2.AbstractJdbc2Statement which adds the jdbc2
  * methods.  The real Statement class (for jdbc1) is org.postgresql.jdbc1.Jdbc1Statement
@@ -144,7 +144,7 @@ public abstract class AbstractJdbc1Statement implements BaseStatement
                v.addElement(l_sql.substring (lastParmEnd, l_sql.length()));
 
                m_sqlFragments = new String[v.size()];
-               m_binds = new String[v.size() - 1];
+               m_binds = new Object[v.size() - 1];
                m_bindTypes = new String[v.size() - 1];
 
                for (i = 0 ; i < m_sqlFragments.length; ++i)
index f3c06f3c52927df5bd25d7393e80d055197b8e31..510cc4242b05361111a0f1932984f568ac5feae3 100644 (file)
@@ -9,7 +9,7 @@ import org.postgresql.Driver;
 import org.postgresql.largeobject.*;
 import org.postgresql.util.PSQLException;
 
-/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.13 2003/03/14 01:21:47 barry Exp $
+/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.14 2003/05/29 04:52:44 barry Exp $
  * This class defines methods of the jdbc2 specification.  This class extends
  * org.postgresql.jdbc1.AbstractJdbc1Statement which provides the jdbc1
  * methods.  The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2Statement
@@ -175,7 +175,7 @@ public abstract class AbstractJdbc2Statement extends org.postgresql.jdbc1.Abstra
                        l_newSqlFragments = new String[m_sqlFragments.length];
                        System.arraycopy(m_sqlFragments,0,l_newSqlFragments,0,m_sqlFragments.length);
                }
-               Object[] l_newBinds = new String[m_binds.length];
+               Object[] l_newBinds = new Object[m_binds.length];
         System.arraycopy(m_binds,0,l_newBinds,0,m_binds.length);
                String[] l_newBindTypes = new String[m_bindTypes.length];
         System.arraycopy(m_bindTypes,0,l_newBindTypes,0,m_bindTypes.length);