MCPcopy Index your code
hub / github.com/zzzeek/sqlalchemy / test_fetch_limit_offset_self_group

Method test_fetch_limit_offset_self_group

test/sql/test_compiler.py:493–508  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

491 )
492
493 def test_fetch_limit_offset_self_group(self):
494 self.assert_compile(
495 select(1).limit(1).self_group(),
496 "(SELECT 1 LIMIT :param_1)",
497 checkparams={"param_1": 1},
498 )
499 self.assert_compile(
500 select(1).offset(1).self_group(),
501 "(SELECT 1 LIMIT -1 OFFSET :param_1)",
502 checkparams={"param_1": 1},
503 )
504 self.assert_compile(
505 select(1).fetch(1).self_group(),
506 "(SELECT 1 FETCH FIRST :param_1 ROWS ONLY)",
507 checkparams={"param_1": 1},
508 )
509
510 def test_limit_fetch_interaction(self):
511 self.assert_compile(

Callers

nothing calls this directly

Calls 6

selectFunction · 0.90
assert_compileMethod · 0.80
self_groupMethod · 0.45
limitMethod · 0.45
offsetMethod · 0.45
fetchMethod · 0.45

Tested by

no test coverage detected