diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-10-09 16:48:19 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-10-09 16:48:19 +0000 |
commit | a4e3943b3fe6b4fdbca58d5fb41bbafd22a92c15 (patch) | |
tree | 8cbafa34e4105e182bc203530d29c965af327ce0 /src/interfaces/jdbc/org/postgresql/util | |
parent | c4ccc6146bfe2d20140da2e388e0d62b41c96f9b (diff) |
Back out Gunnar R|nning jdbc changes.
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/util')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/util/Serialize.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/util/Serialize.java b/src/interfaces/jdbc/org/postgresql/util/Serialize.java index 08bc2185148..3af43e6eb84 100644 --- a/src/interfaces/jdbc/org/postgresql/util/Serialize.java +++ b/src/interfaces/jdbc/org/postgresql/util/Serialize.java @@ -50,7 +50,7 @@ public class Serialize // Second check, the type must be a table boolean status = false; - ResultSet rs = conn.ExecSQL(null, "select typname from pg_type,pg_class where typname=relname and typname='"+type+"'"); + ResultSet rs = conn.ExecSQL("select typname from pg_type,pg_class where typname=relname and typname='"+type+"'"); if(rs!=null) { if(rs.next()) status=true; @@ -97,7 +97,7 @@ public class Serialize sb.append(oid); DriverManager.println("store: "+sb.toString()); - ResultSet rs = conn.ExecSQL(null, sb.toString()); + ResultSet rs = conn.ExecSQL(sb.toString()); if(rs!=null) { if(rs.next()) { for(int i=0;i<f.length;i++) { @@ -189,7 +189,7 @@ public class Serialize } DriverManager.println("store: "+sb.toString()); - ResultSet rs = conn.ExecSQL(null, sb.toString()); + ResultSet rs = conn.ExecSQL(sb.toString()); if(rs!=null) { rs.close(); } @@ -236,7 +236,7 @@ public class Serialize // See if the table exists String tableName = toPostgreSQL(c.getName()); - ResultSet rs = con.ExecSQL(null, "select relname from pg_class where relname = '"+tableName+"'"); + ResultSet rs = con.ExecSQL("select relname from pg_class where relname = '"+tableName+"'"); if(!rs.next()) { DriverManager.println("found "+rs.getString(1)); // No entries returned, so the table doesn't exist @@ -277,7 +277,7 @@ public class Serialize // Now create the table DriverManager.println("Serialize.create:"+sb); - con.ExecSQL(null, sb.toString()); + con.ExecSQL(sb.toString()); rs.close(); } else { DriverManager.println("Serialize.create: table "+tableName+" exists, skipping"); |