

@testing.requires.offset
def test_limit_offset_nobinds(self):
    "test that 'literal binds' mode works - no bound params."
    table = self.tables.some_table
    stmt = select([table]).order_by(table.c.id).limit(2).offset(1)
    sql = stmt.compile(dialect=config.db.dialect, compile_kwargs={
        'literal_binds': True,
    })
    sql = str(sql)
    self._assert_result(sql, [(2, 2, 3), (3, 3, 4)])

dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/testing/suite/test_select.py LimitOffsetTest.test_limit_offset_nobinds/original