Skip to content

[BUG] SQL parser should return false if applied to "SELECT * FRoOM foo " #22

@XSven

Description

@XSven

According to the SQL::Parser documentation

In example #⁠4, however, the value of $success will be false because the string contains a SQL syntax error ('FRoOM' instead of 'FROM').

the SELECT statement in the title should be invalid. Annoyingly SQL::Parser treates the statement as valid:

perl -MSQL::Parser -E 'say SQL::Parser->new->parse("SELECT * FRoOM foo ")'
1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      [BUG] SQL parser should return false if applied to "SELECT * FRoOM foo " · Issue #22 · perl5-dbi/SQL-Statement