]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- use an ordered dict so that queries are deterministic
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 31 Mar 2015 03:29:39 +0000 (23:29 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 31 Mar 2015 03:29:39 +0000 (23:29 -0400)
test/orm/test_eager_relations.py

index d701cdbfcfcac84fea374dd4ffecdcd184e3bc44..e085f44a60de57619785b79184103f07b2c1fbe2 100644 (file)
@@ -2080,10 +2080,10 @@ class InnerJoinSplicingTest(fixtures.MappedTest, testing.AssertsCompiledSQL):
         mapper(A, cls.tables.a, properties={
             'bs': relationship(B)
         })
-        mapper(B, cls.tables.b, properties={
-            'c1s': relationship(C1, order_by=cls.tables.c1.c.id),
-            'c2s': relationship(C2, order_by=cls.tables.c2.c.id)
-        })
+        mapper(B, cls.tables.b, properties=odict([
+            ('c1s', relationship(C1, order_by=cls.tables.c1.c.id)),
+            ('c2s', relationship(C2, order_by=cls.tables.c2.c.id))
+        ]))
         mapper(C1, cls.tables.c1, properties={
             'd1s': relationship(D1, order_by=cls.tables.d1.c.id)
         })