Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9e2a980

Browse files
author
Barry Lind
committed
Applied patch from Fernando Nasser to fix up small type error
1 parent ece84bf commit 9e2a980

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.sql.Types;
2626
import java.util.Vector;
2727

28-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.23 2003/05/29 04:48:33 barry Exp $
28+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/AbstractJdbc1Statement.java,v 1.24 2003/05/29 04:52:44 barry Exp $
2929
* This class defines methods of the jdbc1 specification. This class is
3030
* extended by org.postgresql.jdbc2.AbstractJdbc2Statement which adds the jdbc2
3131
* methods. The real Statement class (for jdbc1) is org.postgresql.jdbc1.Jdbc1Statement
@@ -144,7 +144,7 @@ protected void parseSqlStmt (String p_sql) throws SQLException
144144
v.addElement(l_sql.substring (lastParmEnd, l_sql.length()));
145145

146146
m_sqlFragments = new String[v.size()];
147-
m_binds = new String[v.size() - 1];
147+
m_binds = new Object[v.size() - 1];
148148
m_bindTypes = new String[v.size() - 1];
149149

150150
for (i = 0 ; i < m_sqlFragments.length; ++i)

src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.postgresql.largeobject.*;
1010
import org.postgresql.util.PSQLException;
1111

12-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.13 2003/03/14 01:21:47 barry Exp $
12+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.14 2003/05/29 04:52:44 barry Exp $
1313
* This class defines methods of the jdbc2 specification. This class extends
1414
* org.postgresql.jdbc1.AbstractJdbc1Statement which provides the jdbc1
1515
* methods. The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2Statement
@@ -175,7 +175,7 @@ public void addBatch() throws SQLException
175175
l_newSqlFragments = new String[m_sqlFragments.length];
176176
System.arraycopy(m_sqlFragments,0,l_newSqlFragments,0,m_sqlFragments.length);
177177
}
178-
Object[] l_newBinds = new String[m_binds.length];
178+
Object[] l_newBinds = new Object[m_binds.length];
179179
System.arraycopy(m_binds,0,l_newBinds,0,m_binds.length);
180180
String[] l_newBindTypes = new String[m_bindTypes.length];
181181
System.arraycopy(m_bindTypes,0,l_newBindTypes,0,m_bindTypes.length);

0 commit comments

Comments
 (0)