]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
repair xid in psycopg
authorFederico Caselli <cfederico87@gmail.com>
Fri, 5 Jun 2026 19:51:13 +0000 (21:51 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 8 Jun 2026 20:18:29 +0000 (22:18 +0200)
commit61a45679e658551069b7345d968ac5d9be49988b
treee4c9ec1e9ad25717ce4e43959b4a4b09f9c3abfa
parenta373a27e4c3d2b8851fcf36871eee96c03d73414
repair xid in psycopg

Repaired bug introduced in :ticket:`13229` where a two-phase
transaction recovery would not return the correct transaction
identifier when generating the identifiers using the ``xid()``
method of the psycopg connection.

Fixes: #13355
Change-Id: Iffe68c1701afaa678fa7b598559dd396d3f8db41
(cherry picked from commit 75cb5aec658196a0bae5d07216d790126ebc0739)
doc/build/changelog/unreleased_20/13355.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/_psycopg_common.py
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/testing/fixtures/base.py
test/dialect/postgresql/test_dialect.py