literal_column, func, between, Unicode, desc, and_, bindparam, \
select, distinct, or_, collate, insert, Integer, String, Boolean
from sqlalchemy import inspect
-from sqlalchemy import exc as sa_exc, util
+from sqlalchemy import exc as sa_exc, util, cast
from sqlalchemy.sql import compiler, table, column
from sqlalchemy.sql import expression
from sqlalchemy.engine import default
eq_(
list(
sess.query(User).params(a=1, b=3).
- order_by(User.id)[bindparam('a'):bindparam('b')]
- ),
+ order_by(User.id)
+ [cast(bindparam('a'), Integer):cast(bindparam('b'), Integer)]),
[User(id=8), User(id=9)]
)