]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Clarify COMMIT/ROLLBACK logging when autocommit is turned on
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Mar 2021 17:27:09 +0000 (12:27 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Mar 2021 18:36:12 +0000 (13:36 -0500)
commit6d97d0c97de01e67a2d2d59c5bec1bbf3782de10
tree035415f61fffb21ee6833f078330220921547774
parent2f7623b6b265cd5f25f2a6022e21bc3286d397a3
Clarify COMMIT/ROLLBACK logging when autocommit is turned on

Improved engine logging to note ROLLBACK and COMMIT which is logged while
the DBAPI driver is in AUTOCOMMIT mode. These ROLLBACK/COMMIT are library
level and do not have any effect when AUTOCOMMIT is in effect, however it's
still worthwhile to log as these indicate where SQLAlchemy sees the
"transaction" demarcation.

Fixes: #6002
Change-Id: I723636515193e0addc86dd0a3132bc23deadb81b
doc/build/changelog/unreleased_14/6002.rst [new file with mode: 0644]
lib/sqlalchemy/engine/base.py
test/engine/test_logging.py