Someone
public text v1 · immutableimport pg
foobar=1
connection=pg.connect(dbname='foobar', host='localhost', user='postgres')
results=connection.query("select * from testtable where id=%s", (foobar))
error = TypeError: query(sql), with sql (string).
results should be my name from the database
Sherif Nagy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: query(sql), with sql (string).