MCPcopy
hub / github.com/andialbrecht/sqlparse / test_grouping_alias_case

Function test_grouping_alias_case

tests/test_grouping.py:335–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333
334
335def test_grouping_alias_case():
336 # see issue46
337 p = sqlparse.parse('CASE WHEN 1 THEN 2 ELSE 3 END foo')[0]
338 assert len(p.tokens) == 1
339 assert p.tokens[0].get_alias() == 'foo'
340
341
342def test_grouping_alias_ctas():

Callers

nothing calls this directly

Calls 1

get_aliasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…