diff options
author | Barry Lind <barry@xythos.com> | 2002-06-24 06:16:27 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2002-06-24 06:16:27 +0000 |
commit | 12a28d12bb14686ecb43f1e36af51b33715d1cd3 (patch) | |
tree | 6ec6a31b24b31512eb0409e72286ae8221c2fa2b /src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java | |
parent | 33086553c015d8718b4cc4f00e300fd3debaa2d4 (diff) | |
download | postgresql-12a28d12bb14686ecb43f1e36af51b33715d1cd3.tar.gz |
patch to add support for callable statements to the jdbc driver. The patch was submitted by Paul Bethe pmbethe@yahoo.com
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java b/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java index 86b1a4fc79..9ab3cced8e 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/Connection.java @@ -17,7 +17,7 @@ import org.postgresql.largeobject.*; import org.postgresql.util.*; /* - * $Id: Connection.java,v 1.19 2002/06/11 02:55:16 barry Exp $ + * $Id: Connection.java,v 1.20 2002/06/24 06:16:27 barry Exp $ * * A Connection represents a session with a specific database. Within the * context of a Connection, SQL statements are executed and results are @@ -135,11 +135,10 @@ public class Connection extends org.postgresql.Connection implements java.sql.Co public java.sql.CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { - throw new PSQLException("postgresql.con.call"); - //CallableStatement s = new CallableStatement(this,sql); - //s.setResultSetType(resultSetType); - //s.setResultSetConcurrency(resultSetConcurrency); - //return s; + CallableStatement s = new CallableStatement(this,sql); + s.setResultSetType(resultSetType); + s.setResultSetConcurrency(resultSetConcurrency); + return s; } /* |