]> granicus.if.org Git - postgresql/commitdiff
Add res clear to example
authorBruce Momjian <bruce@momjian.us>
Wed, 26 Apr 2000 17:51:03 +0000 (17:51 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 26 Apr 2000 17:51:03 +0000 (17:51 +0000)
src/bin/pgtclsh/pgtclUtils.tcl
src/interfaces/jdbc/org/postgresql/DriverClass.java

index dff87a484f418596ac868c8bce3fddbb706b4bd8..e09e8b2b3a2e79177b845c93d794e78cd70aed53 100644 (file)
@@ -10,6 +10,7 @@ proc getDBs { {host "localhost"} {port "5432"} } {
     for {set i 0} {$i < $ntups} {incr i} {
        lappend datnames [pg_result $res -getTuple $i]
     }
+    pg_result $res -clear
     pg_disconnect $conn
     return $datnames
 }
index 873cdba6c0f21853fafba4c4ad7cbc2a35ff69be..02bb6b7235caf49750e3188b733ee0a2678ea577 100644 (file)
@@ -1,4 +1,4 @@
 package org.postgresql;
 public class DriverClass {
-public static String connectClass="org.postgresql.jdbc2.Connection";
+public static String connectClass="org.postgresql.jdbc1.Connection";
 }