Skip to content

Commit

Permalink
sqlparser: fix interval parser error radondb#472
Browse files Browse the repository at this point in the history
[summary]
select adddate('2009-09-01 19:08:01', interval '1 1' month_day) from t;
The keywords month_day parser with backquote previously, then `MySQL` report syntax error.
[testcase]
parser_test.go
[codecov]
86.4%
  • Loading branch information
zhyass committed Sep 4, 2019
1 parent 9873b79 commit f6e8a38
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/sql.y

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f6e8a38

Please sign in to comment.