Skip to content

Make parser error/warn message useful #86

@lysu

Description

@lysu

Now parser's error message is useless,
e.g. execute those script:

select1 1;

pingcap/parser will got:

ERROR 1105 (HY000): line 1 column 7 near " 1" (total length 9)

for MySQL will be:

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select1 1' at line 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions