The Psycopg 2.9 release notes can be found here.
The 2.9.1 release fixes a regression with named sql.Placeholder.
Details
Details
- Reviewers
JoshStrobl - Group Reviewers
Triage Team - Commits
- R2488:b5fc55c92b3c: Update psycopg2 to 2.9.1 and remove Python2 build
Connect to, and query, an existing Pagila database:
python3
import psycopg2
conn = psycopg2.connect("dbname=pagila")
cur = conn.cursor()
cur.execute("SELECT title, description FROM film WHERE fulltext @@ to_tsquery('saga&india');")
for i in cur.fetchall():
print(f"Title: {i[0]}, description: {i[1]}")Diff Detail
Diff Detail
- Repository
- R2488 psycopg2
- Lint
Lint Not Applicable - Unit
Tests Not Applicable