test_limit.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:clickhouse-sqlalchemy 作者: xzkostyan 项目源码 文件源码
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'
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号