mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 09:26:30 +00:00
rename
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user