diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-02-25 13:20:43 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-02-25 13:20:43 -0500 |
commit | a7f766d7c7fd6c53eb0019e32569e915b3f31eb4 (patch) | |
tree | 25f6234f67bbea40bb95eb34572bd2f67136e33f /lib/sqlalchemy/sql/compiler.py | |
parent | 34d6c9bc7dafbb2717ae10b6e11942e2dd409f35 (diff) | |
download | sqlalchemy-a7f766d7c7fd6c53eb0019e32569e915b3f31eb4.tar.gz |
- establish an "insert" option for events to control ordering if needed (not needed yet tho)
- render foreign key constraints in the order in which they were cerated
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index 781072dd0..d6a020bdc 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -1272,7 +1272,7 @@ class DDLCompiler(engine.Compiled): if table.primary_key: constraints.append(table.primary_key) - constraints.extend([c for c in table.constraints + constraints.extend([c for c in table._sorted_constraints if c is not table.primary_key]) return ", \n\t".join(p for p in |