Commit Graph

600 Commits

Author SHA1 Message Date
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
161c532025 parser: (partially) fix float point parsing with leading dot (#3964) 2017-08-01 22:28:48 +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
2745333435 parser,plan: support \N shortcut for null (#3943) 2017-08-01 14:16:43 +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
0aa27c3d3d lexer: fix panic when input "'\\" (#3948)
* lexer: fix panic when input "'\\"
2017-07-31 11:35:36 +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
88616f0433 parser, session: fix wrong comment in selection field (#3767) 2017-07-17 13:55:26 +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
467a01a2d0 *: support drop stats (#3615)
* plan, executor: support drop stats

* ast: add comment

* address comment

* address comment
2017-07-05 17:01:36 +08:00
45cd7c9864 builtin, json: add json_object and json_array functions. (#3562) 2017-07-03 20:23:27 +08:00
740d9393e8 parser: add TablesTerminalSym nonterminal symbol desc (#3578)
* parser: add TablesTerminalSym nonterminal symbol desc
2017-06-29 20:42:00 +08:00
f265357476 parser: add syntax support "lock table" and "unlock table" (#3570)
before this pr, TiDB can't support sql like `lock table t1 write, t2 read`,
it just support `lock tables t1 write, t2 read`
2017-06-29 17:13:44 +08:00
45490a02b9 parser: Support alter table rename table without to (#3552) 2017-06-27 20:04:25 +08:00
2b4a3ce5e6 parser: parse "select HIGH_PRIORITY ..." statement (#3466) 2017-06-26 17:19:10 +08:00
5dd0165532 Fix Run Empty Alter Table Add Constraint SQL Error (#3456)
* Fix Run SQL like "ALTER TABLE `test`.`t` ADD INDEX `index1` ();"
2017-06-13 20:50:40 +08:00
4bc3cf7a48 *: support using clause in join statement. (#3372) 2017-06-12 17:14:13 +08:00
ddc2ffcfa5 parser: add generated column grammar. (#3428) 2017-06-09 14:31:35 +08:00
a623135bae *: add cast(value as JSON) support. (#3395) 2017-06-07 19:58:27 +08:00
791b4c273c expression: add buildin functions json_{set,insert,replace} and json_merge. (#3388) 2017-06-06 15:50:32 +08:00
ea9ce9c0fa *: fix issue3356 (#3357) 2017-06-01 23:53:45 +08:00
f83bdd0aaf *: fix 3235 (#3358) 2017-05-31 23:27:47 +08:00
b73b833e02 parser: use ExpressionListOpt for json functions. (#3362) 2017-05-31 13:46:22 +08:00
9b6fc032fc *: add References_priv to mysql.user (#3343) 2017-05-26 17:58:32 +08:00
6962814a29 add json_type function and compare json with primitive types. (#3307) 2017-05-24 15:21:40 +08:00
76ece8ec1f ddl: add support first/after for modify/change column (#3215) 2017-05-24 09:58:30 +08:00
2c07a47f22 parser: fixed alter table compression option (#3293) 2017-05-20 16:37:57 +08:00
cd5bc0a314 parser: support add fulltext index and clean redundant code (#3299) 2017-05-20 16:25:40 +08:00
213954d2e7 *: add specified columns for LOAD DATA INFILE Syntax (#3240)
* : add specified columns for LOAD DATA INFILE Syntax
2017-05-15 16:40:47 +08:00
9b8a445aa8 *: parse more lock options in alter table statement (#3260)
* *: parse more  lock options in alter table statement and ignore them
2017-05-15 14:29:13 +08:00