]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Disable Enum string validation by default
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jun 2016 14:08:36 +0000 (10:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jun 2016 15:45:24 +0000 (11:45 -0400)
commit91a1022227499c8efce038c4a0a9bdcdb14a69d0
tree8911d31a6c3a15731038211d9e8908c5dcdb2a2e
parent4e811fd72e615116c448fba323aa57f7efd4798c
Disable Enum string validation by default

Rolled back the validation rules a bit in :class:`.Enum` to allow
unknown string values to pass through, unless the flag
``validate_string=True`` is passed to the Enum; any other kind of object is
still of course rejected.  While the immediate use
is to allow comparisons to enums with LIKE, the fact that this
use exists indicates there may be more unknown-string-comparsion use
cases than we expected, which hints that perhaps there are some
unknown string-INSERT cases too.

Change-Id: I7d1d79b374a7d47966d410998f77cd19294ab7b0
Fixes: #3725
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
lib/sqlalchemy/dialects/mysql/enumerated.py
lib/sqlalchemy/sql/sqltypes.py
test/dialect/mysql/test_types.py
test/sql/test_types.py