Skip to content

Cannot distinguish between SELECT * FROM foo and SELECT * FROM foo() #405

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

Closed
not-my-profile opened this issue Jan 23, 2022 · 1 comment · Fixed by #506
Closed

Cannot distinguish between SELECT * FROM foo and SELECT * FROM foo() #405

not-my-profile opened this issue Jan 23, 2022 · 1 comment · Fixed by #506

Comments

@not-my-profile
Copy link

sqlparser::ast::TableFactor::Table just represents the arguments as a Vec<FunctionArg> both
SELECT * FROM foo and SELECT * FROM foo() and are parsed as:

Table { name: ObjectName([Ident { value: "foo", quote_style: None }]), alias: None, args: [], with_hints: [] }

This is apparently a regression that was introduced in 5652b46 (#73).

@alamb
Copy link
Contributor

alamb commented Mar 8, 2022

@not-my-profile we would be happy to accept a proposed fix

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

Successfully merging a pull request may close this issue.

2 participants