]> 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:27:16 +0000 (20:27 -0400)
commitd462dbde99762bfbdc4d4af7f67c329350a8700a
tree7832e1a5ebb733f2759873ca816453a514ba12ed
parentc9a59575ebfd827d85a56d33b994416512ec82cd
- 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