aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/example/threadsafe.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/jdbc/example/threadsafe.java')
-rw-r--r--src/interfaces/jdbc/example/threadsafe.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/jdbc/example/threadsafe.java b/src/interfaces/jdbc/example/threadsafe.java
index 7cb48c19612..ea69143d8d0 100644
--- a/src/interfaces/jdbc/example/threadsafe.java
+++ b/src/interfaces/jdbc/example/threadsafe.java
@@ -145,7 +145,7 @@ public class threadsafe
// manner. (DateStyles are PostgreSQL's way of handling different methods
// of representing dates in the Date data type.)
PreparedStatement ps = db.prepareStatement("insert into basic1 values (?,?)");
- for(int i=2;i<200;i++) {
+ for(int i=2;i<2000;i++) {
ps.setInt(1,4); // "column a" = 5
ps.setInt(2,i); // "column b" = i
ps.executeUpdate(); // executeUpdate because insert returns no data
@@ -212,7 +212,7 @@ public class threadsafe
// manner. (DateStyles are PostgreSQL's way of handling different methods
// of representing dates in the Date data type.)
PreparedStatement ps = db.prepareStatement("insert into basic2 values (?,?)");
- for(int i=2;i<200;i++) {
+ for(int i=2;i<2000;i++) {
ps.setInt(1,4); // "column a" = 5
ps.setInt(2,i); // "column b" = i
ps.executeUpdate(); // executeUpdate because insert returns no data