aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/example/basic.java
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-09-06 21:23:06 +0000
committerBruce Momjian <bruce@momjian.us>2002-09-06 21:23:06 +0000
commitf37c1c486a383a3d266598463e13958359dbcce9 (patch)
tree6ad11ea2a33bae8b485c084434cbde9fc35f374f /src/interfaces/jdbc/example/basic.java
parentb4295d052e81a246bd7b15f6bc4ad37bd7ab4e86 (diff)
downloadpostgresql-f37c1c486a383a3d266598463e13958359dbcce9.tar.gz
postgresql-f37c1c486a383a3d266598463e13958359dbcce9.zip
Run pgjindent for Java folks.
Diffstat (limited to 'src/interfaces/jdbc/example/basic.java')
-rw-r--r--src/interfaces/jdbc/example/basic.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/example/basic.java b/src/interfaces/jdbc/example/basic.java
index 5f07a56c3f5..61ef493181d 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.12 2002/07/23 03:59:54 barry Exp $
+ * $Id: basic.java,v 1.13 2002/09/06 21:23:05 momjian Exp $
*
* This example tests the basic components of the JDBC driver, and shows
* how even the simplest of queries can be implemented.
@@ -137,6 +137,7 @@ public class basic
// result if you don't know what column number a value is in
+
System.out.println("performing another query");
rs = st.executeQuery("select * from basic where b>1");
if (rs != null)
@@ -164,6 +165,7 @@ public class basic
// Now test maxrows by setting it to 3 rows
+
st.setMaxRows(3);
System.out.println("performing a query limited to " + st.getMaxRows());
rs = st.executeQuery("select a, b from basic");