Commit Graph

504 Commits

Author SHA1 Message Date
0d0685aae4 Refactor parser: Avoid some assertion for StmtNode (#4705) 2017-10-09 15:27:40 +08:00
a3ce471b0d parser: Avoid type assert for ast.ExprNode (#4710) 2017-10-09 10:24:22 +08:00
ca7403a814 parser: refactor parser step2 (#4652)
Refactor expression syntax to use MySQL naming and structure.
Partially fix issue #4026
2017-09-29 15:34:03 +08:00
a6b5c666c5 *: support NotFillCache kv request option (#4658)
If TiDB send a request with NotFillCache option, the LRU cache of underlying
storage will not be touched. select statement with SQL_NO_CACHE will use it.
2017-09-29 02:06:38 -05:00
a2393245dd parser, ast, expression: support TIME/TIMESTAMP literal (#4368) 2017-09-19 16:37:29 +08:00
1ae31c9fad Support delete ignore with strict sql mode produces warnings in truncate error (#4564) 2017-09-19 16:20:13 +08:00
a303748e4c ast, parser: support syntax for "EXPLAIN FORMAT = stringlit" (#4554) 2017-09-19 12:50:06 +08:00
dd06221d71 parser: refactor parser first step (#4545)
* parser: refactor parser first step

This is the first step to refactor parser. it solve several problems.

1. function name can be general identifier, we don't need to define a keyword for a builtin function.

2. write test to make sure keyword is consistent with lever token. this fixes #4538.

3. Removed ReservedKeyword, solve the identifier in scanner.

4. Simplified precedence definition.

* *: address comment
2017-09-18 21:04:00 +08:00
24db77fef1 parser: handle create table PARTITION BY KEY grammar (#4539) 2017-09-15 16:46:54 +08:00
4f07681065 parser, ast, expression: fix bug on DATE literal (#4362) 2017-09-15 14:29:31 +08:00
262260a643 expression, parser: refine parser of localtime and localtimestamp (#4503) 2017-09-12 15:33:39 +08:00
e61efe6ee5 parser: support nvarchar syntax (#4500) 2017-09-12 14:30:04 +08:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
0b04d1c6c7 expression: rewrite builtin JSON functions under the new framework. (#4367) 2017-09-06 14:42:35 +08:00
952aafd403 *: Add operation of admin show ddl jobs (#4316)
* *: implement "admin show ddl jobs"
2017-09-05 13:07:51 +08:00
ae30c4dcbc support "UPDATE IGNORE", update conflicts generate warning (#4397) 2017-09-04 11:13:18 +08:00
62c8d39d93 expression: fix float literals and binary literals (#4365) 2017-08-29 06:44:52 -05:00
c9b62fbdda expression: add json into builtin if function. (#4203) 2017-08-29 17:32:10 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
c27a3db4a5 parser: fix bug for parsing builtin UTC_TIME/UTC_TIMESTAMP/CUR_TIME/CURRENT_TIME/CURRENT_TIMESTAMP (#4306) 2017-08-27 21:14:30 -05:00
ff8072e458 paser, executor: add date literal(#3909) (#4046) 2017-08-27 21:16:47 +08:00
31819a8dcb parser, expression: implement builtin function: LAST_DAY (#4290) 2017-08-23 16:34:35 +08:00
ff34a46446 store/tikv: implement MVCCStore interface using leveldb backend (#3970) 2017-08-22 03:48:42 -05:00
3f8334e188 *: provide SHOW PLUGINS statement with a dummy implementation (#4278) 2017-08-22 10:58:47 +08:00
97e9dfe92c expression: Fix Flen for DATETIME, TIMESTAMP and TIME (#4264) 2017-08-21 16:10:04 +08:00
fce58065d7 parser,plan,ast: fix #4239, concatenates string literals which placed each other, and use first string as projection name (#4252) 2017-08-21 12:37:27 +08:00
666953bb92 parser: indent the parse.y (#4253) 2017-08-21 10:18:39 +08:00
a88ebb1cf6 *: use structure to store user identity (#4078)
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
c51d0f57ed *: support JSON in new expression architecture (#4089) 2017-08-10 15:56:53 +08:00
9f4475844e *: support binary flag of type char and fix type inferer of some string built-in funcs (#4035) 2017-08-07 12:28:32 +08:00
6e0ff81269 parser: support DISTINCTROW(#4007) 2017-08-04 19:37:53 +08:00
6ea563fe5b Fix issue 3966, get_format(TIMESTAMP, 'USA') (#3976) 2017-08-01 20:00:36 +08:00
d0dcb5b0a6 expression, parser: fix issue #3691, cast compatibility (#3894) 2017-08-01 16:47:38 +08:00
7874e989eb *: support natural join. (#3861) 2017-08-01 13:56:29 +08:00
3527750130 expression, executor, plan: rewrite builtin function trim. (#3936) 2017-08-01 10:54:31 +08:00
b991c56d9f plan: fix name with white space at the end (#3927)
* Column, table, database names with space at the end will return error
2017-07-28 18:12:23 +08:00
e94996addf *: add parser support for multiple tables renaming (#3892) 2017-07-27 20:01:24 +08:00
45b13118ad parser, plan, util: fix alter table does not check the field length limitation (#3859)
* fix alter table does not check the field length limitation of char/varchar
2017-07-27 17:27:50 +08:00
71773cf33c *: change "AndAnd", "OrOr" to "LogicAnd", "LogicOr" respectively (#3874) 2017-07-25 15:53:02 +08:00
c59d5bc6f7 parser: support two json grammar sugar. (#3854)
`select a->'$.a'` equals to `select json_extract(a, '$.a')`;
`select a->>'$.a'` equals to `select json_unquote(json_extract(a, '$.a'))`.
2017-07-24 14:01:49 +08:00
a19ad3f480 ddl: support create index with type and comment (#3814) 2017-07-20 19:01:14 +08:00
d8aaa222c8 *: make SET TRANSACTION ISOLATION LEVEL READ COMMITTED take effect (#3619) 2017-07-17 19:16:23 +08:00
bde940f399 Add a tidb_version() function to show tidb-server info (#3592) 2017-07-17 17:07:54 +08:00
76cc17ebf7 parser: support username without quotes (#3742) 2017-07-15 10:16:24 +08:00
ddc104a2a6 parser: support for setting global variable with on and off (#3631) 2017-07-14 11:16:59 +08:00
4b16708bd2 parser: add syntax support for show charset (#3726) 2017-07-13 10:41:10 +08:00
f024ebbdca *: support show stats_buckets (#3720) 2017-07-12 17:37:53 +08:00
f212ef1705 * support show stats_histogram (#3683) 2017-07-11 15:49:11 +08:00
aa41e3aaf4 *: support show stats (#3633) 2017-07-06 16:51:59 +08:00
35d2ca006a expression, parser: simplify the type inferer of builtin funcs (#3617) 2017-07-06 16:18:40 +08:00