MCPcopy
hub / github.com/dbcli/pgcli / test_cte_does_not_crash

Function test_cte_does_not_crash

tests/test_sqlcompletion.py:44–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def test_cte_does_not_crash():
45 sql = "WITH CTE AS (SELECT F.* FROM Foo F WHERE F.Bar > 23) SELECT C.* FROM CTE C WHERE C.FooID BETWEEN 123 AND 234;"
46 for i in range(len(sql)):
47 suggest_type(sql[: i + 1], sql[: i + 1])
48
49
50@pytest.mark.parametrize("expression", ['SELECT * FROM "tabl" WHERE '])

Callers

nothing calls this directly

Calls 1

suggest_typeFunction · 0.90

Tested by

no test coverage detected