Page MenuHomeSolus

Update Psycopg to 2.9.2
ClosedPublic

Authored by silke on Sun, Nov 14, 11:27 AM.

Details

Summary

Changelog:

  • Raise ValueError for dates >= Y10k.
  • ~psycopg2.errorcodes map and ~psycopg2.errors classes updated to PostgreSQL 14.
  • Add preliminary support for Python 3.11.

Depends on D12300

Test Plan

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

Repository
R2488 psycopg2
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

silke created this revision.Sun, Nov 14, 11:27 AM
silke requested review of this revision.Sun, Nov 14, 11:27 AM
JoshStrobl accepted this revision.Tue, Nov 16, 7:07 AM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Tue, Nov 16, 7:07 AM
This revision was automatically updated to reflect the committed changes.