-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added psycopg3 support #1739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added psycopg3 support #1739
Conversation
@tim-schilling please add your changes for |
Sorry, I dropped the ball on this. |
This is getting closer. I'm struggling to get |
It turns out we were never running the postgis test suite. That's been fixed. |
Phew, that is done. |
updated trans_id to rely on transaction status instead of connection status as it works with pyscorg3 Use correct json property based on psycopg version Skip test_tuple_param_conversion if using psycopg3 Move psycopg3 skip logic into decorator.
@matthiask can you double check the changes for me? |
For what it's worth, I just tested it with the following and it works:
Thank you 🙌 |
Description
Add support for psycopg3 while still keeping support for psycopg2
Fixes #1736
Checklist:
docs/changes.rst
.tests.panels.test_sql.SQLPanelMultiDBTestCase.test_transaction_status