]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
set autocommit for psycopg2 pre-ping
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Jun 2021 14:23:51 +0000 (10:23 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 11 Jun 2021 14:34:53 +0000 (10:34 -0400)
commit52feba23f466ca95dfe8cd10d35b546a05b35cbf
tree0a327c937fb6cfc3a8b9f28ee5dc48d17130b64c
parentad1c81a6df4950788db3f8007331cac0f9365d97
set autocommit for psycopg2 pre-ping

Fixed issue where the pool "pre ping" feature would implicitly start a
transaction, which would then interfere with custom transactional flags
such as PostgreSQL's "read only" mode when used with the psycopg2 driver.

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