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

Function test_schema_qualified_array_index

tests/test_parse.py:279–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277
278
279def test_schema_qualified_array_index():
280 p = sqlparse.parse('schem.col[1]')[0].tokens
281 assert len(p) == 1
282 assert p[0].get_parent_name() == 'schem'
283 assert p[0].get_name() == 'col'
284 assert list(p[0].get_array_indices())[0][0].value == '1'
285
286
287def test_aliased_array_index():

Callers

nothing calls this directly

Calls 3

get_parent_nameMethod · 0.80
get_nameMethod · 0.80
get_array_indicesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…