2
0
mirror of https://git.postgresql.org/git/postgresql.git synced 2024-12-09 08:10:09 +08:00

Add res clear to example

This commit is contained in:
Bruce Momjian 2000-04-26 17:51:03 +00:00
parent 3c0685e423
commit 0b65e1436e
2 changed files with 2 additions and 1 deletions
src
bin/pgtclsh
interfaces/jdbc/org/postgresql

View File

@ -10,6 +10,7 @@ proc getDBs { {host "localhost"} {port "5432"} } {
for {set i 0} {$i < $ntups} {incr i} { for {set i 0} {$i < $ntups} {incr i} {
lappend datnames [pg_result $res -getTuple $i] lappend datnames [pg_result $res -getTuple $i]
} }
pg_result $res -clear
pg_disconnect $conn pg_disconnect $conn
return $datnames return $datnames
} }

View File

@ -1,4 +1,4 @@
package org.postgresql; package org.postgresql;
public class DriverClass { public class DriverClass {
public static String connectClass="org.postgresql.jdbc2.Connection"; public static String connectClass="org.postgresql.jdbc1.Connection";
} }