From 6378c347994c902f7d4e65e54f2b76d01ce603d2 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Tue, 23 Oct 2007 07:38:07 +0000 Subject: - Added initial version of MaxDB dialect. - All optional test Sequences are now optional=True --- test/orm/eager_relations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/orm/eager_relations.py') diff --git a/test/orm/eager_relations.py b/test/orm/eager_relations.py index 7ecae957e..a30c4d7fa 100644 --- a/test/orm/eager_relations.py +++ b/test/orm/eager_relations.py @@ -244,7 +244,7 @@ class EagerTest(QueryTest): noeagers = create_session().query(User).from_statement("select * from users").all() assert 'orders' not in noeagers[0].__dict__ assert 'addresses' not in noeagers[0].__dict__ - + def test_limit(self): """test limit operations combined with lazy-load relationships.""" @@ -260,7 +260,7 @@ class EagerTest(QueryTest): sess = create_session() q = sess.query(User) - if testbase.db.engine.name == 'mssql': + if testing.against('mysql'): l = q.limit(2).all() assert fixtures.user_all_result[:2] == l else: @@ -317,7 +317,7 @@ class EagerTest(QueryTest): q = sess.query(User) - if testbase.db.engine.name != 'mssql': + if not testing.against('maxdb', 'mssql'): l = q.join('orders').order_by(Order.user_id.desc()).limit(2).offset(1) assert [ User(id=9, -- cgit v1.2.1