1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-09 13:09:39 +03:00

Wed Jan 31 08:46:00 GMT 2001 peter@retep.org.uk

- Some minor additions to Statement to make our own extensions more
          portable.
        - Statement.close() will now call ResultSet.close() rather than just
          dissasociating with it.
This commit is contained in:
Peter Mount
2001-01-31 09:23:45 +00:00
parent 8439a83d84
commit 234599e943
6 changed files with 80 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import java.text.*;
/**
*
* $Id: basic.java,v 1.6 2001/01/31 08:26:01 peter Exp $
* $Id: basic.java,v 1.7 2001/01/31 09:23:45 peter Exp $
*
* This example tests the basic components of the JDBC driver, and shows
* how even the simplest of queries can be implemented.
@@ -86,7 +86,7 @@ public class basic
// This shows how to get the oid of a just inserted row
// updated for 7.1
st.executeUpdate("insert into basic values (4,1)");
int insertedOID = ((org.postgresql.jdbc2.Statement)st).getInsertedOID();
int insertedOID = ((org.postgresql.Statement)st).getInsertedOID();
System.out.println("Inserted row with oid "+insertedOID);
// Now change the value of b from 1 to 8