Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WHERE clause mistaken for table alias #451

Open
geokats opened this issue Nov 15, 2023 · 0 comments
Open

WHERE clause mistaken for table alias #451

geokats opened this issue Nov 15, 2023 · 0 comments

Comments

@geokats
Copy link

geokats commented Nov 15, 2023

When the query SELECT name from employee WHERE age > 25 is parsed, the resulting table_aliases are {'WHERE': 'employee'}.

Code to reproduce with sql_metadata == 2.10.0

import sql_metadata
parser = sql_metadata.Parser("SELECT name from employee WHERE age > 25")
print(parser.tables_aliases)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant