]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
help test with an order by
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Mar 2010 04:36:17 +0000 (00:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Mar 2010 04:36:17 +0000 (00:36 -0400)
test/orm/inheritance/test_query.py

index a83c3c8a146b9344f703c6199bdb9c8a86eab32c..9e944ca6fd81c8ae37c6472b08782feeb955df69 100644 (file)
@@ -1349,7 +1349,7 @@ class SubClassEagerToSubClassTest(_base.MappedTest):
     def setup_mappers(cls):
         mapper(Parent, parent, polymorphic_on=parent.c.type, polymorphic_identity='b')
         mapper(Subparent, subparent, inherits=Parent, polymorphic_identity='s', properties={
-            'children':relationship(Sub)
+            'children':relationship(Sub, order_by=base.c.id)
         })
         mapper(Base, base, polymorphic_on=base.c.type, polymorphic_identity='b')
         mapper(Sub, sub, inherits=Base, polymorphic_identity='s')