diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-20 11:44:27 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-20 11:44:27 -0400 |
commit | 666fda3c9c45e5a710abb355b1052b3ef4775cf5 (patch) | |
tree | eb68c6fe36c97861179ad28733b6bd82d79f4b00 /test/orm/inheritance/test_basic.py | |
parent | 6ae1e8996165ea3efd29996e010b760c921a20a8 (diff) | |
download | sqlalchemy-666fda3c9c45e5a710abb355b1052b3ef4775cf5.tar.gz |
order the properties here to get the SQL to be deterministic
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r-- | test/orm/inheritance/test_basic.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py index f883a07a7..bbfa54383 100644 --- a/test/orm/inheritance/test_basic.py +++ b/test/orm/inheritance/test_basic.py @@ -1649,10 +1649,10 @@ class OptimizedLoadTest(fixtures.MappedTest): pass mapper(Base, base) - mapper(JoinBase, base.outerjoin(sub), properties={ - 'id': [base.c.id, sub.c.id], - 'counter': [base.c.counter, sub.c.counter] - }) + mapper(JoinBase, base.outerjoin(sub), properties=util.OrderedDict( + [('id', [base.c.id, sub.c.id]), + ('counter', [base.c.counter, sub.c.counter])]) + ) mapper(SubJoinBase, inherits=JoinBase) sess = Session() @@ -1672,9 +1672,9 @@ class OptimizedLoadTest(fixtures.MappedTest): testing.db, go, CompiledSQL( - "SELECT base.counter AS base_counter, " - "sub.counter AS sub_counter, base.id AS base_id, " - "sub.id AS sub_id, base.data AS base_data, " + "SELECT base.id AS base_id, sub.id AS sub_id, " + "base.counter AS base_counter, sub.counter AS sub_counter, " + "base.data AS base_data, " "base.type AS base_type, sub.sub AS sub_sub, " "sub.counter2 AS sub_counter2 FROM base " "LEFT OUTER JOIN sub ON base.id = sub.id " |