Commit Graph

12 Commits

Author SHA1 Message Date
8f79c2031b parser: change intLit to decLit when the value out of range (#2954) 2017-03-29 23:16:48 +08:00
6d58b5c6ec parser: parse /*+ */ for optimizer hint (#2904) 2017-03-21 14:47:21 +08:00
ecb01eb3af parser: handle the national character set like N'literal' (#2773) 2017-03-06 19:08:54 +08:00
849ec6c63e parser: support ANSI_QUOTES sql mode (#2754)
In ANSI_QUOTES sql mode, "xxx" is parsed to  identifier,
similar to `xxx` in normal sql mode

* fix typo
2017-03-01 13:45:19 +08:00
2594e4f799 parser: parse use 10 instead 0 (#2404) 2017-01-06 11:29:55 +08:00
8a03344d05 *: deprecate DateArithInterval (#2368) 2017-01-04 11:42:59 +08:00
5917a784be parser: fix .1_t_1_x parsed as .1 _t_1_x (#2210)
it should not be parsed as a .1(float) and _t_1_x(identifier)
instead, it should be .(dot) 1_t_1_x(identifier)
2016-12-09 11:47:46 +08:00
f15333b8c7 parser: fix bug 0_x should parse to identifier (#2200) 2016-12-08 17:14:15 +08:00
ca700d2c75 parser: fix wrong offset for token inner mysql comment (#2141) 2016-11-30 22:29:07 +08:00
91050ff1f8 parser: parse decimal literal instead of float literal (#2044)
Improves MySQL compatibility.
2016-11-21 19:29:25 +08:00
94b5d1001f parser: handle MySQL-specific-code comment syntax in parser (#2018)
* parser: handle MySQL-specific-code comment syntax in parser

fix issue 2017
2016-11-17 10:47:21 +08:00
3b8bf2135c parser: tiny clean up (#1992)
rename scanner_test.go to lexer_test.go
make the code more robust when unicode.ReplacementChar appears
2016-11-13 15:20:01 +08:00