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

Function test_aliased_column_without_as

tests/test_grouping.py:630–639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

628
629
630def test_aliased_column_without_as():
631 p = sqlparse.parse('foo bar')[0].tokens
632 assert len(p) == 1
633 assert p[0].get_real_name() == 'foo'
634 assert p[0].get_alias() == 'bar'
635
636 p = sqlparse.parse('foo.bar baz')[0].tokens[0]
637 assert p.get_parent_name() == 'foo'
638 assert p.get_real_name() == 'bar'
639 assert p.get_alias() == 'baz'
640
641
642def test_qualified_function():

Callers

nothing calls this directly

Calls 3

get_parent_nameMethod · 0.80
get_real_nameMethod · 0.45
get_aliasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…