diff options
author | Barry Lind <barry@xythos.com> | 2003-05-03 20:40:45 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2003-05-03 20:40:45 +0000 |
commit | 5295fffc26d9bb02fc3b51cbb4f7de744ee50046 (patch) | |
tree | 73ca858d05b3272bdd243aaadc927dafdf8d2467 /src/interfaces/jdbc/org/postgresql/PGRefCursorResultSet.java | |
parent | 721996d88906393b5f9fb4191e8c54726fa478fc (diff) | |
download | postgresql-5295fffc26d9bb02fc3b51cbb4f7de744ee50046.tar.gz |
Patch to fix up LONGVARBINARY support submitted by Amit Gollapudi
(agollapudi@demandsolutions.com).
Also applied the RefCursor support patch by Nic Ferrier. This patch allows
you too return a get a result set from a function that returns a refcursor.
For example:
call.registerOutParameter(1, Types.OTHER);
call.execute();
ResultSet rs = (ResultSet) call.getObject(1);
Modified Files:
jdbc/org/postgresql/core/BaseStatement.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
jdbc/org/postgresql/jdbc1/Jdbc1PreparedStatement.java
jdbc/org/postgresql/jdbc1/Jdbc1Statement.java
jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
jdbc/org/postgresql/jdbc2/Jdbc2PreparedStatement.java
jdbc/org/postgresql/jdbc2/Jdbc2Statement.java
jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java
jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java
jdbc/org/postgresql/jdbc3/Jdbc3Statement.java
Added Files:
jdbc/org/postgresql/PGRefCursorResultSet.java
jdbc/org/postgresql/jdbc1/Jdbc1RefCursorResultSet.java
jdbc/org/postgresql/jdbc2/Jdbc2RefCursorResultSet.java
jdbc/org/postgresql/jdbc3/Jdbc3RefCursorResultSet.java
jdbc/org/postgresql/test/jdbc2/RefCursorTest.java
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/PGRefCursorResultSet.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/PGRefCursorResultSet.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/PGRefCursorResultSet.java b/src/interfaces/jdbc/org/postgresql/PGRefCursorResultSet.java new file mode 100644 index 0000000000..2594c7e1d0 --- /dev/null +++ b/src/interfaces/jdbc/org/postgresql/PGRefCursorResultSet.java @@ -0,0 +1,25 @@ +/*------------------------------------------------------------------------- + * + * PGRefCursorResultSet.java + * Describes a PLPGSQL refcursor type. + * + * Copyright (c) 2003, PostgreSQL Global Development Group + * + * IDENTIFICATION + * $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Attic/PGRefCursorResultSet.java,v 1.1 2003/05/03 20:40:45 barry Exp $ + * + *------------------------------------------------------------------------- + */ +package org.postgresql; + + +/** A ref cursor based result set. + */ +public interface PGRefCursorResultSet +{ + + /** return the name of the cursor. + */ + public String getRefCursor (); + +} |