]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix psycopg2 pre_ping with autocommit
authorFederico Caselli <cfederico87@gmail.com>
Mon, 11 Apr 2022 21:19:16 +0000 (23:19 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Wed, 13 Apr 2022 20:29:55 +0000 (22:29 +0200)
commitc154ed5e047113ce6763cc5a26741f6a5022eb1d
treec295a93f303e920b7c647f48fbe53de77146a4db
parentfd052732604a0d03167978215f0077e60b75851d
Fix psycopg2 pre_ping with autocommit

Fixed an issue what would cause autocommit mode to be reset
when using pre_ping in conjunction engine level autocommit
on the psycopg2 driver.

Fixes: #7930
Change-Id: I4cccaf1b7f8cbacd853689458080784114fcc390
doc/build/changelog/unreleased_14/7930.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/_psycopg_common.py
lib/sqlalchemy/dialects/postgresql/psycopg.py
test/dialect/postgresql/test_dialect.py