]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't change asyncpg's "char" codec
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 Sep 2020 12:26:14 +0000 (08:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 Sep 2020 14:44:37 +0000 (10:44 -0400)
commit362c9277b2d4d27cbcff359ba29c1e71005fed18
treecfb401b17cd52da632ffe5a8e4231c063c87c2bf
parent8ebc8184392e20727748cd1405245e527f17e111
Don't change asyncpg's "char" codec

This codec was used to ensure the "pg_attribute.generated"
column comes back as a string and not bytes, matching how
other PG drivers treat this datatype.   However, this breaks
asyncpg's internal implementation of set_type_codec going forward
and the "char" datatype is actually a bytes in any case.
So at the moment it appears psycopg2/pg8000 are broken for mis-treatment
of the datatype and asyncpg is broken in that it was allowing
us to change a codec that it appears to rely upon internally.

Fixes: #5586
Change-Id: I937eba315904721aa4e2726b95432910a8affe5f
lib/sqlalchemy/dialects/postgresql/asyncpg.py
lib/sqlalchemy/dialects/postgresql/base.py