diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-04-08 18:43:31 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-04-08 18:45:31 -0400 |
commit | 8128a8f3638b522778458edb81c81e654927bea4 (patch) | |
tree | 3e5fab30b47e490a1faefc6d06d9611b4e23fb97 /lib/sqlalchemy/dialects/postgresql/hstore.py | |
parent | 0cb1e5d08d3ec448c2b318966a675c963cd12aa0 (diff) | |
download | sqlalchemy-8128a8f3638b522778458edb81c81e654927bea4.tar.gz |
fix pg ENUM issues
Restored the :paramref:`_postgresql.ENUM.name` parameter as optional in the
signature for :class:`_postgresql.ENUM`, as this is chosen automatically
from a given pep-435 ``Enum`` type.
Fixed issue where the comparison for :class:`_postgresql.ENUM` against a
plain string would cast that right-hand side type as VARCHAR, which due to
more explicit casting added to dialects such as asyncpg would produce a
PostgreSQL type mismatch error.
Fixes: #9611
Fixes: #9621
Change-Id: If095544cd1a52016ad2e7cfa2d70c919a94e79c1
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/hstore.py')
0 files changed, 0 insertions, 0 deletions