def test_offset_without_limit(self):
table = self.create_table()
with self.assertRaises(exc.CompileError) as ex:
query = session.query(table.c.x).offset(5)
self.compile(query, literal_binds=True)
self.assertEqual(
str(ex.exception),
'OFFSET without LIMIT is not supported'
)
评论列表
文章目录