diff options
author | Barry Lind <barry@xythos.com> | 2001-10-09 20:47:35 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2001-10-09 20:47:35 +0000 |
commit | 839b9bc0117946afd62ee385a4c8a36c01b3053b (patch) | |
tree | e79216ae693ea1f7e5e7eda0072280622a4f8662 /src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java | |
parent | ffb8f73890a9998a7737434aefe190926369ee80 (diff) | |
download | postgresql-839b9bc0117946afd62ee385a4c8a36c01b3053b.tar.gz |
This patch fixes a bug introduced in the jdbc bytea support patch.
That patch broke the ability to read data from binary cursors.
--Barry Lind
Modified Files:
pgsql/src/interfaces/jdbc/org/postgresql/Connection.java
pgsql/src/interfaces/jdbc/org/postgresql/ResultSet.java
pgsql/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java index 077c4b0ee2..12fec3bf7c 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java @@ -40,9 +40,9 @@ public class UpdateableResultSet extends org.postgresql.jdbc2.ResultSet * @param updateCount the number of rows affected by the operation * @param cursor the positioned update/delete cursor name */ - public UpdateableResultSet(Connection conn, Field[] fields, Vector tuples, String status, int updateCount,int insertOID) + public UpdateableResultSet(Connection conn, Field[] fields, Vector tuples, String status, int updateCount,int insertOID, boolean binaryCursor) { - super(conn,fields,tuples,status,updateCount,insertOID); + super(conn,fields,tuples,status,updateCount,insertOID,binaryCursor); } /** @@ -56,10 +56,10 @@ public class UpdateableResultSet extends org.postgresql.jdbc2.ResultSet * @param updateCount the number of rows affected by the operation * @param cursor the positioned update/delete cursor name */ - public UpdateableResultSet(Connection conn, Field[] fields, Vector tuples, String status, int updateCount) - { - super(conn,fields,tuples,status,updateCount,0); - } + // public UpdateableResultSet(Connection conn, Field[] fields, Vector tuples, String status, int updateCount) + // { + // super(conn,fields,tuples,status,updateCount,0,false); + //} public void cancelRowUpdates() throws SQLException { @@ -77,7 +77,7 @@ public class UpdateableResultSet extends org.postgresql.jdbc2.ResultSet { // New in 7.1 - The updateable ResultSet class will now return // CONCUR_UPDATEABLE. - return CONCUR_UPDATABLE; + return CONCUR_UPDATABLE; } public void insertRow() throws SQLException @@ -120,26 +120,26 @@ public class UpdateableResultSet extends org.postgresql.jdbc2.ResultSet } public void updateAsciiStream(int columnIndex, - java.io.InputStream x, - int length - ) throws SQLException + java.io.InputStream x, + int length + ) throws SQLException { // only sub-classes implement CONCUR_UPDATEABLE throw org.postgresql.Driver.notImplemented(); } public void updateBigDecimal(int columnIndex, - java.math.BigDecimal x - ) throws SQLException + java.math.BigDecimal x + ) throws SQLException { // only sub-classes implement CONCUR_UPDATEABLE throw org.postgresql.Driver.notImplemented(); } public void updateBinaryStream(int columnIndex, - java.io.InputStream x, - int length - ) throws SQLException + java.io.InputStream x, + int length + ) throws SQLException { // only sub-classes implement CONCUR_UPDATEABLE throw org.postgresql.Driver.notImplemented(); @@ -164,9 +164,9 @@ public class UpdateableResultSet extends org.postgresql.jdbc2.ResultSet } public void updateCharacterStream(int columnIndex, - java.io.Reader x, - int length - ) throws SQLException + java.io.Reader x, + int length + ) throws SQLException { // only sub-classes implement CONCUR_UPDATEABLE throw org.postgresql.Driver.notImplemented(); |