diff options
| author | Barry Lind <barry@xythos.com> | 2002-07-25 22:45:28 +0000 |
|---|---|---|
| committer | Barry Lind <barry@xythos.com> | 2002-07-25 22:45:28 +0000 |
| commit | 68c6eff9454caa57de1b807f58eade19997c9c14 (patch) | |
| tree | c6824c5f608d8566bb3abe0a95e90e382d6c33ed /src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Connection.java | |
| parent | 73eb2dfe77f5b08197a2d27557d72fcd229e2100 (diff) | |
| download | postgresql-68c6eff9454caa57de1b807f58eade19997c9c14.tar.gz | |
Third phase of restructuring to add jdbc3 support.
Modified Files:
jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
jdbc/org/postgresql/jdbc1/Jdbc1Connection.java
jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
jdbc/org/postgresql/jdbc2/Array.java
jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
jdbc/org/postgresql/jdbc2/Jdbc2Connection.java
jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
Added Files:
jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
Removed Files:
jdbc/org/postgresql/jdbc1/CallableStatement.java
jdbc/org/postgresql/jdbc2/CallableStatement.java
jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Connection.java')
| -rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Connection.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Connection.java b/src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Connection.java index 249a41049b..b67b07fde9 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Connection.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Connection.java @@ -6,7 +6,7 @@ import java.sql.*; import org.postgresql.Field; import org.postgresql.util.PSQLException; -/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/Jdbc1Connection.java,v 1.2 2002/07/24 22:08:40 barry Exp $ +/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/Jdbc1Connection.java,v 1.3 2002/07/25 22:45:28 barry Exp $ * This class implements the java.sql.Connection interface for JDBC1. * However most of the implementation is really done in * org.postgresql.jdbc1.AbstractJdbc1Connection @@ -24,10 +24,9 @@ public class Jdbc1Connection extends org.postgresql.jdbc1.AbstractJdbc1Connectio return new org.postgresql.jdbc1.Jdbc1PreparedStatement(this, sql); } -//BJL TODO - merge callable statement logic from jdbc2 to jdbc1 public java.sql.CallableStatement prepareCall(String sql) throws SQLException { - throw new PSQLException("postgresql.con.call"); + return new org.postgresql.jdbc1.Jdbc1CallableStatement(this, sql); } public java.sql.DatabaseMetaData getMetaData() throws SQLException @@ -39,7 +38,12 @@ public class Jdbc1Connection extends org.postgresql.jdbc1.AbstractJdbc1Connectio public java.sql.ResultSet getResultSet(java.sql.Statement stat, Field[] fields, Vector tuples, String status, int updateCount, long insertOID, boolean binaryCursor) throws SQLException { - return new Jdbc1ResultSet(this, fields, tuples, status, updateCount, insertOID, binaryCursor); + return new Jdbc1ResultSet(this, stat, fields, tuples, status, updateCount, insertOID, binaryCursor); + } + + public java.sql.ResultSet getResultSet(java.sql.Statement stat, Field[] fields, Vector tuples, String status, int updateCount) throws SQLException + { + return new Jdbc1ResultSet(this, stat, fields, tuples, status, updateCount, 0, false); } } |
