summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/lambdas.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-03-30 15:22:01 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-09-10 10:41:41 -0400
commit74f52f86ce45f187055596832a9bdf1aeb47b99c (patch)
treecc5605e70439007d4f0c2cd471514c377a64c647 /lib/sqlalchemy/sql/lambdas.py
parent4cca61c93d0f35f351cc890fd4d2d6fd6e27d734 (diff)
downloadsqlalchemy-74f52f86ce45f187055596832a9bdf1aeb47b99c.tar.gz
ignore and warn for native_enum=False with pg.ENUM datatype
any UPPERCASE datatype refers to that exact type name rendered on the database. So PG's ENUM must render "ENUM" and is "native" by definition. warn if this flag is passed. The :class:`_postgresql.ENUM` datatype is PostgreSQL-native and therefore should not be used with the ``native_enum=False`` flag. This flag is now ignored if passed to the :class:`_postgresql.ENUM` datatype and a warning is emitted; previously the flag would cause the type object to fail to function correctly. Fixes: #6106 Change-Id: I08e0ec6fcfafd068e1eaf6aec13c8010f09ce94a
Diffstat (limited to 'lib/sqlalchemy/sql/lambdas.py')
0 files changed, 0 insertions, 0 deletions