MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_no_cte_with_lateral

Method test_no_cte_with_lateral

test/sql/test_values.py:359–376  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

357 )
358
359 def test_no_cte_with_lateral(self):
360 values_ = (
361 values(
362 column("col1", String),
363 column("col2", Integer),
364 name="some_name",
365 )
366 .data([("a", 2), ("b", 3)])
367 .lateral()
368 )
369
370 cte = values_.cte()
371
372 with expect_raises_message(
373 exc.CompileError,
374 "Can't use a LATERAL VALUES expression inside of a CTE",
375 ):
376 cte.select().compile()
377
378 @testing.fixture
379 def literal_parameter_fixture(self):

Callers

nothing calls this directly

Calls 8

valuesFunction · 0.90
columnFunction · 0.90
expect_raises_messageFunction · 0.90
lateralMethod · 0.45
dataMethod · 0.45
cteMethod · 0.45
compileMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected