Commit Graph

27 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
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
b2f8a6fceb parser: parse kill statement (#2734) 2017-02-27 13:58:02 +08:00
2594e4f799 parser: parse use 10 instead 0 (#2404) 2017-01-06 11:29:55 +08:00
9cca7b0b02 types: move Bit, Enum, Set, Hex to types package (#2085)
Consistent with Time and MyDecimal.
2016-11-24 12:28:55 +08:00
b19cc75a94 mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. (#2082)
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +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
c0c9729300 parser: fix bug hexadecimal parsed as string (#1871)
x'13181C76734725455A' should be parsed as a hexLit, but it's parsed as a string
2016-10-25 14:24:59 +08:00
a33240d8a8 parser: set flag in parse function. (#1799)
Every `ast.Statement` needs to set flag before use, set the flag in parse function,
so we don't need to set it somewhere else and won't forget to do it.
2016-10-09 11:36:56 +08:00
3eb6f4f513 parser: remove the old lexer, clean up (#1597) 2016-08-18 14:29:45 +08:00
0a0abbb2e7 parser: use the new lexer as default (#1566) 2016-08-15 10:06:52 +08:00
3545493808 parser: cache variable in parser to avoid allocation (#1565) 2016-08-08 23:17:44 +08:00
a5db620286 parser: rewrite lex (#1514)
introduce a handwriten lexer, which should be better in performance and support UTF8.
it's still not used as default one, a switch is provided by specifying -newlexer=true in tidb-server.
2016-08-06 16:29:21 +08:00
398eec015d parser: move lexer's int/float/hex method to function (#1529)
the old lexer and the new lexer can both use those code
2016-08-01 18:44:54 +08:00
b42dae814a parser: move charset/collation/list fields to parser from lexer (#1491) 2016-07-27 11:20:31 +08:00
128af2e92a parser: store sql string in parser and move offset related method (#1493) 2016-07-27 10:50:06 +08:00
db4cdcfaec parser: reduce memory allocation (#1408) 2016-07-07 16:42:30 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
5fd70ed31e parser: Handle MySQL-specific code
Fix: https://github.com/pingcap/tidb/issues/971
2016-03-15 15:53:39 +08:00
207c7673b9 *: update error code. 2016-01-16 13:21:06 +08:00
7b248032da parser: address comment. 2015-12-24 11:00:34 +08:00
631045ce5f parser: address comment. 2015-12-24 10:47:37 +08:00
bfd188d844 parser: remove YYParse function, use Parse and ParseOne instead. 2015-12-23 18:25:28 +08:00
3d93c973e8 parser: add comment for exported variables. 2015-12-18 20:11:34 +08:00
c5fae25a60 optimizer: validates '?' is not allowed in non-prepare mode. 2015-12-18 19:40:45 +08:00
0d6f270068 Add files 2015-09-06 12:08:47 +08:00