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

Function test_get_real_name

tests/test_parse.py:460–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458
459
460def test_get_real_name():
461 # issue 369
462 s = "update a t set t.b=1"
463 stmts = sqlparse.parse(s)
464 assert len(stmts) == 1
465 assert 'a' == stmts[0].tokens[2].get_real_name()
466 assert 't' == stmts[0].tokens[2].get_alias()
467
468
469def test_from_subquery():

Callers

nothing calls this directly

Calls 2

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…