mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-28 03:06:29 +00:00
fix
This commit is contained in:
@@ -193,7 +193,7 @@ impl Server {
|
|||||||
// Error client didn't clean up!
|
// Error client didn't clean up!
|
||||||
// We shuold drop this server
|
// We shuold drop this server
|
||||||
'E' => {
|
'E' => {
|
||||||
self.in_transaction = false;
|
self.in_transaction = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
_ => {
|
_ => {
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ import psycopg2
|
|||||||
conn = psycopg2.connect("postgres://random:password@127.0.0.1:5433/db")
|
conn = psycopg2.connect("postgres://random:password@127.0.0.1:5433/db")
|
||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
|
|
||||||
cur.execute("SELECT 123");
|
cur.execute("SELECT $1", [1234]);
|
||||||
res = cur.fetchall()
|
res = cur.fetchall()
|
||||||
|
|
||||||
print(res)
|
print(res)
|
||||||
|
|
||||||
|
conn.commit()
|
||||||
Reference in New Issue
Block a user