]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add bind casts for BYTEA on asyncpg
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 May 2023 02:33:28 +0000 (22:33 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 May 2023 12:47:11 +0000 (08:47 -0400)
commit667a9ca21417f5ae9d2c5bd031506cf40c8e5909
tree0ef35a046e71989af619847a1a08cae9026b05d2
parent228490ead7048f2e558c25b0f055bdb952272ec4
add bind casts for BYTEA on asyncpg

Fixed another regression due to the "insertmanyvalues" change in 2.0.10 as
part of :ticket:`9618`, in a similar way as regression :ticket:`9701`, where
:class:`.LargeBinary` datatypes also need additional casts on when using the
asyncpg driver specifically in order to work with the new bulk INSERT
format.

Fixes: #9739
Change-Id: I57370d269ea757f263c1f3a16c324ceae76fd4e8
doc/build/changelog/unreleased_20/9739.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/asyncpg.py
lib/sqlalchemy/testing/suite/test_insert.py
lib/sqlalchemy/testing/suite/test_types.py