Skip to content

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

@not-my-profile

Description

@not-my-profile

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions