]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixes: #4663 : Move the explicit in `DefaultDialect` initialization to 4664/head
authorMatthew Wilkes <git@matthewwilkes.name>
Mon, 6 May 2019 15:52:49 +0000 (16:52 +0100)
committerMatthew Wilkes <git@matthewwilkes.name>
Thu, 9 May 2019 18:07:56 +0000 (11:07 -0700)
commite544fe671d443ed06b210ba1cd1d7ba9c5653831
tree7acda9a0d088646403ca61811d857a282cc899b4
parent1c3e92627362604472ca483055fc827a97942e6b
Fixes: #4663 : Move the explicit in `DefaultDialect` initialization to
the pool's `first_connect` handler. This ensures that all dialects will
always roll back after completing their call to `initialize(conn)`.
This has the effect of ensuring that the first connection to a postgresql
database is in the same state as all subsequent connections, i.e. not with
an implicit transaction open from the feature detection queries.
doc/build/changelog/unreleased_14/4663.rst [new file with mode: 0644]
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/strategies.py
test/dialect/postgresql/test_dialect.py
test/engine/test_execute.py