]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Count columns using PrimaryKeyConstraint.__len__ directly
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Nov 2016 17:34:01 +0000 (12:34 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 12 Nov 2016 17:34:01 +0000 (12:34 -0500)
commit88ca587eae19afb8e069d896b95580aaed8b0e24
tree43b8cdb72e33b201655caecac5b3467609c84dec
parentdd93c6a116ff62040a938d5e63a2f71d6a2f3805
Count columns using PrimaryKeyConstraint.__len__ directly

PrimaryKeyConstraint is present on Table however
on table() and others it's a ColumnSet.  The warning
here only needs len() and PrimaryKeyConstraint supports that
directly in the same way as ColumnSet.

Change-Id: I19c11a39110bfef48cdea49a471e7ab80b537538
Fixes: #3842
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/sql/crud.py
test/sql/test_insert.py