]> 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:28:30 +0000 (22:28 +0200)
commit86f6409d883e9bed5174c521ecaac49ab0c0474d
tree515836958771c4bfdcb2a405bf7f12d6df4a8393
parentdd658e042a0f154993601fdc76008039e2f2e3c0
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
(cherry picked from commit 363b68e08e9ceed4ce6821f5fd48ab32bdfd807c)
doc/build/changelog/unreleased_14/7930.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/psycopg2.py
test/dialect/postgresql/test_dialect.py