From 234599e943dbe0d3c9a31608d208ab496b011638 Mon Sep 17 00:00:00 2001 From: Peter Mount Date: Wed, 31 Jan 2001 09:23:45 +0000 Subject: 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. --- src/interfaces/jdbc/example/basic.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/interfaces/jdbc/example/basic.java') diff --git a/src/interfaces/jdbc/example/basic.java b/src/interfaces/jdbc/example/basic.java index 5e382538747..2c989b4c89a 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.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 -- cgit v1.2.3