]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
establish Uuid as emulated, pg.UUID as nativeforemulated
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 May 2023 19:56:31 +0000 (15:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 May 2023 21:05:48 +0000 (17:05 -0400)
commitee6ab85e49e6c555c5b80dcd88a3c8de9885869e
treeac295ca6442fd7c1c5a4dd536b8445f7f4154b32
parent75d716c7799e28ba5c86c72db08025dd6fc8c6e0
establish Uuid as emulated, pg.UUID as nativeforemulated

Repaired the base :class:`.Uuid` datatype for the PostgreSQL dialect to
make proper use of the PG-specific ``UUID`` internal datatype when
"native_uuid" is selected, so that PG driver behaviors are included. This
issue became apparent due to the insertmanyvalues improvement made as part
of :ticket:`9618`, where in a similar manner as that of :ticket:` 9739`
where the asyncpg driver is very sensitive to datatype casts being present
or not, the PostgreSQL driver-specific native ``UUID`` datatype must be
invoked when this generic type is used.

also consolidate imv tests for largebinary, uuid into
suite/test_insert.py

Fixes: #9808
Change-Id: Ibadfaff86ddf7db37145b4d003ef4802bd6e8f26
doc/build/changelog/unreleased_20/9808.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/dialects/postgresql/named_types.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/testing/suite/test_insert.py
lib/sqlalchemy/testing/suite/test_types.py