mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Add res clear to example
This commit is contained in:
parent
3c0685e423
commit
0b65e1436e
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user