mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-25 10:06:28 +00:00
fix
This commit is contained in:
@@ -193,7 +193,7 @@ impl Server {
|
||||
// Error client didn't clean up!
|
||||
// We shuold drop this server
|
||||
'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")
|
||||
cur = conn.cursor()
|
||||
|
||||
cur.execute("SELECT 123");
|
||||
cur.execute("SELECT $1", [1234]);
|
||||
res = cur.fetchall()
|
||||
|
||||
print(res)
|
||||
print(res)
|
||||
|
||||
conn.commit()
|
||||
Reference in New Issue
Block a user