From: Mike Bayer Date: Tue, 15 Jan 2008 18:33:30 +0000 (+0000) Subject: maintain the ordering of the given collection of columns when reducing so that primar... X-Git-Tag: rel_0_4_3~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=924b6392159376029fe16858db30d06f8075dfb5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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 --- diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py index 93998c9a91..34397f261c 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: