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

Function test_issue489_tzcasts

tests/test_regressions.py:402–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400
401
402def test_issue489_tzcasts():
403 p = sqlparse.parse('select bar at time zone \'UTC\' as foo')[0]
404 assert p.tokens[-1].has_alias() is True
405 assert p.tokens[-1].get_alias() == 'foo'
406
407
408def test_issue562_tzcasts():

Callers

nothing calls this directly

Calls 2

has_aliasMethod · 0.80
get_aliasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…