Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
402
def
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
408
def
test_issue562_tzcasts():
Callers
nothing calls this directly
Calls
2
has_alias
Method · 0.80
get_alias
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…