]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
maintain the ordering of the given collection of columns when reducing so that primar...
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Jan 2008 18:33:30 +0000 (18:33 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 15 Jan 2008 18:33:30 +0000 (18:33 +0000)
ordered the same as in the mapped table

lib/sqlalchemy/sql/util.py

index 93998c9a91ac0c70d6c9de4469a5fd7c19ce872f..34397f261c4c4d03dd60a00b13e64f476c736c68 100644 (file)
@@ -67,7 +67,7 @@ def reduce_columns(columns, *clauses):
     
     """
     
-    columns = util.Set(columns)
+    columns = util.OrderedSet(columns)
     
     omit = util.Set()
     for col in columns: