macbre / sql-metadata

Uses tokenized query returned by python-sqlparse and generates query metadata

Home Page:https://pypi.python.org/pypi/sql-metadata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parser(sql).tables is listing variable name in SELECT-INTO as table name

tkimweston opened this issue · comments

Parser('SELECT C1, C2 INTO VAR1, VAR2 FROM TEST_TABLE').tables) is returning VAR1 and VAR2 as table names

['VAR1', 'VAR2', 'TEST_TABLE']

Tested @var1, @var2 and :VAR1, :VAR2 (Oracle bind variable names) and the result is the same.