This commit is contained in:
Lev Kokotov
2022-02-03 18:13:36 -08:00
parent 6e83556867
commit 05250d9374
2 changed files with 5 additions and 3 deletions

View File

@@ -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;
} }
_ => { _ => {

View File

@@ -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()