]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't reorder PrimaryKeyConstraint columns if explicit
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jun 2016 15:39:01 +0000 (11:39 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jun 2016 16:52:31 +0000 (12:52 -0400)
commitbf03d4332ae35e2087b175f8a2e0291d2f4c9aa0
tree8eadf8feeab0e2a677a8385125251b17bf715b1c
parent91a1022227499c8efce038c4a0a9bdcdb14a69d0
Don't reorder PrimaryKeyConstraint columns if explicit

Dialed back the "order the primary key columns per auto-increment"
described in :ref:`change_mysql_3216` a bit, so that if the
:class:`.PrimaryKeyConstraint` is explicitly defined, the order
of columns is maintained exactly, allowing control of this behavior
when necessary.

Change-Id: I9e7902c57a96c15968a6abf53e319acf15680da0
Fixes: #3726
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/schema.py
test/sql/test_compiler.py