Mike Bayer avatar Mike Bayer committed c78b9fe

fixes for pg9

Comments (0)

Files changed (3)

test/orm/inheritance/test_abc_polymorphic.py

                 C(cdata='c1', bdata='c1', adata='c1'),
                 C(cdata='c2', bdata='c2', adata='c2'),
                 C(cdata='c2', bdata='c2', adata='c2'),
-            ], sess.query(B).all())
+            ], sess.query(B).order_by(A.id).all())
 
             eq_([
                 C(cdata='c1', bdata='c1', adata='c1'),
                 C(cdata='c2', bdata='c2', adata='c2'),
                 C(cdata='c2', bdata='c2', adata='c2'),
-            ], sess.query(C).all())
+            ], sess.query(C).order_by(A.id).all())
 
         test_roundtrip = function_named(
             test_roundtrip, 'test_%s' % fetchtype)

test/orm/test_eager_relations.py

         sess = create_session()
 
         for q in [
-            sess.query(Address).filter(Address.id.in_([1, 4, 5])),
-            sess.query(Address).filter(Address.id.in_([1, 4, 5])).limit(3)
+            sess.query(Address).filter(Address.id.in_([1, 4, 5])).order_by(Address.id),
+            sess.query(Address).filter(Address.id.in_([1, 4, 5])).order_by(Address.id).limit(3)
         ]:
             sess.expunge_all()
             eq_(q.all(),
         sa.orm.clear_mappers()
 
         mapper(User, users, properties={
-            'addresses':relationship(Address, lazy='joined')})
+            'addresses':relationship(Address, lazy='joined',
+                            order_by=addresses.c.id)})
         mapper(Address, addresses, properties={
             'user_id':deferred(addresses.c.user_id),
             'dingalings':relationship(Dingaling, lazy='joined')})

test/sql/test_query.py

                     ), [(3,)]),
             (select([users.c.user_id]).\
                     where(
-                        users.c.user_name.contains('i % t', escape='\\')
+                        users.c.user_name.contains('i % t', escape='&')
                     ), [(5,)]),
         ):
             eq_(expr.execute().fetchall(), result)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.