diff options
Diffstat (limited to 'src/interfaces/jdbc/example/basic.java')
-rw-r--r-- | src/interfaces/jdbc/example/basic.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interfaces/jdbc/example/basic.java b/src/interfaces/jdbc/example/basic.java index 9a4469d83a0..5f07a56c3f5 100644 --- a/src/interfaces/jdbc/example/basic.java +++ b/src/interfaces/jdbc/example/basic.java @@ -6,7 +6,7 @@ import java.text.*; /* * - * $Id: basic.java,v 1.11 2001/11/25 23:26:56 barry Exp $ + * $Id: basic.java,v 1.12 2002/07/23 03:59:54 barry Exp $ * * This example tests the basic components of the JDBC driver, and shows * how even the simplest of queries can be implemented. @@ -87,9 +87,8 @@ public class basic st.executeUpdate("insert into basic values (3,1)"); // This shows how to get the oid of a just inserted row - // updated for 7.1 st.executeUpdate("insert into basic values (4,1)"); - long insertedOID = ((org.postgresql.Statement)st).getLastOID(); + long insertedOID = ((org.postgresql.PGStatement)st).getLastOID(); System.out.println("Inserted row with oid " + insertedOID); // Now change the value of b from 1 to 8 |