]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fix bug in naming convention feature where using a check
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Jul 2014 00:26:38 +0000 (20:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Jul 2014 00:26:38 +0000 (20:26 -0400)
commitd2193f53c10d29a7a9b1846ebf322fbced55041f
treec4f97c44c32abfe913b0bc5c05c332e696f05c7a
parent6fd0bc7c62849a1dc34ca7d93aeeaaff25897648
- Fix bug in naming convention feature where using a check
constraint convention that includes ``constraint_name`` would
then force all :class:`.Boolean` and :class:`.Enum` types to
require names as well, as these implicitly create a
constraint, even if the ultimate target backend were one that does
not require generation of the constraint such as Postgresql.
The mechanics of naming conventions for these particular
constraints has been reorganized such that the naming
determination is done at DDL compile time, rather than at
constraint/table construction time.
fixes #3067
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/naming.py
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_metadata.py