summaryrefslogtreecommitdiff
path: root/test/orm/test_query.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/orm/test_query.py')
-rw-r--r--test/orm/test_query.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/orm/test_query.py b/test/orm/test_query.py
index a2a1ee096..b83a6304b 100644
--- a/test/orm/test_query.py
+++ b/test/orm/test_query.py
@@ -1588,6 +1588,14 @@ class FilterTest(QueryTest, AssertsCompiledSQL):
offset(bindparam('offset')).params(limit=2, offset=1).all(),
[User(id=8), User(id=9)]
)
+
+ @testing.fails_on("mysql", "doesn't like CAST in the limit clause")
+ @testing.requires.bound_limit_offset
+ def test_select_with_bindparam_offset_limit_w_cast(self):
+ User = self.classes.User
+ sess = create_session()
+ q1 = sess.query(self.classes.User).\
+ order_by(self.classes.User.id).limit(bindparam('n'))
eq_(
list(
sess.query(User).params(a=1, b=3).order_by(User.id)