]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- simplify the mechanics of PrimaryKeyConstraint with regards to reflection;
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jan 2014 22:55:01 +0000 (17:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jan 2014 23:06:18 +0000 (18:06 -0500)
commit49f1807f8f2acea5494fa77d217dce813a933147
tree1d0e96e90604ee24ff250fd57b3a73d1d2b209ec
parent44cba66cb2eb4411b43c228c4f1191c764607855
- simplify the mechanics of PrimaryKeyConstraint with regards to reflection;
reflection now updates the PKC in place.
- support the use case of the empty PrimaryKeyConstraint in order to specify
constraint options; the columns marked as primary_key=True will now be gathered
into the columns collection, rather than being ignored. [ticket:2910]
- add validation such that column specification should only take place
in the PrimaryKeyConstraint directly, or by using primary_key=True flags;
if both are present, they have to match exactly, otherwise the condition is
assumed to be ambiguous, and a warning is emitted; the old behavior of
using the PKC columns only is maintained.
doc/build/changelog/changelog_09.rst
doc/build/core/constraints.rst
doc/build/requirements.txt
lib/sqlalchemy/engine/reflection.py
lib/sqlalchemy/sql/schema.py
test/engine/test_reflection.py
test/sql/test_metadata.py