diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-01-15 18:33:30 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-01-15 18:33:30 +0000 |
commit | 924b6392159376029fe16858db30d06f8075dfb5 (patch) | |
tree | d9c111bcfe3c8b2a963280801c92dbaac73684d3 /lib/sqlalchemy/sql/util.py | |
parent | 2c06e82557b9c11318fa6420c806658eef575930 (diff) | |
download | sqlalchemy-924b6392159376029fe16858db30d06f8075dfb5.tar.gz |
maintain the ordering of the given collection of columns when reducing so that primary key collections remain
ordered the same as in the mapped table
Diffstat (limited to 'lib/sqlalchemy/sql/util.py')
-rw-r--r-- | lib/sqlalchemy/sql/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py index 93998c9a9..34397f261 100644 --- a/lib/sqlalchemy/sql/util.py +++ b/lib/sqlalchemy/sql/util.py @@ -67,7 +67,7 @@ def reduce_columns(columns, *clauses): """ - columns = util.Set(columns) + columns = util.OrderedSet(columns) omit = util.Set() for col in columns: |