This commit is contained in:
Lev Kokotov
2022-02-06 11:22:09 -08:00
parent 99d3e0b803
commit f8d6bd8d89
4 changed files with 19 additions and 18 deletions

View File

@@ -1,11 +1,11 @@
import psycopg2
conn = psycopg2.connect("postgres://random:password@127.0.0.1:5433/db")
conn = psycopg2.connect("postgres://random:password@127.0.0.1:6432/db")
cur = conn.cursor()
cur.execute("SELECT $1", [1234]);
cur.execute("SELECT 1");
res = cur.fetchall()
print(res)
conn.commit()
# conn.commit()