1. Christoph Zwerschke
  2. sqlalchemy

Commits

Mike Bayer  committed 24cace6

fix tests here, mssql/mysql are mutually exclusive about x IN/= <subquery> at least when LIMIT is present

  • Participants
  • Parent commits 72451ee
  • Branches default

Comments (0)

Files changed (1)

File test/orm/test_eager_relations.py

View file
             stuff_view = select([salias.c.id]).where(salias.c.user_id==users.c.id).\
                                     correlate(users).order_by(salias.c.date.desc()).limit(1)
 
-        operator = operators.in_op
+        # can't win on this one
+        if testing.against("mssql"):
+            operator = operators.in_op
+        else:
+            operator = operators.eq
+
         if labeled == 'label':
             stuff_view = stuff_view.label('foo')
             operator = operators.eq