Commit Graph

665 Commits

Author SHA1 Message Date
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
04ef7d7992 *: shard implicit row ID (#5513) 2018-01-04 16:32:41 +08:00
f744c777de parser: Support PACK_KEYS option in CreateTable statement (#5554)
Parse but ignore it.
2018-01-04 13:37:49 +08:00
100bc58a83 parser, variable: fix #5478, make 'set transaction read only' works. (#5483) 2017-12-25 21:36:15 +08:00
5353ebe615 *: support analyze all indices statement (#5403) 2017-12-15 17:29:01 +08:00
f8c0aaf0c9 parser, expression: support SEPARATOR in group_concat aggregate function (#5420) 2017-12-15 16:36:13 +08:00
81ffef96d7 ddl: fix a bug when format generation expressions. (#5262) 2017-12-13 18:57:01 +08:00
c9245f52c2 plan: add hint to force to choose hash join. (#5315) 2017-12-08 20:02:45 +08:00
d742d9285a parser: support sql_mode 'IGNORE SPACE' (#5106) 2017-12-07 09:49:48 +08:00
f3b5975e4a AST: add Format interface on ExprNode for convert AST back to string (#5299) 2017-12-06 19:25:16 +08:00
7e480bd90e ast, parser: support create view syntax (#5197) 2017-11-23 22:53:50 +08:00
1630957fdf parser: Support add columns with parentheses (#5103) 2017-11-16 15:07:48 +08:00
326e63a55f add bit_and, bit_or to parser.y (#5091) 2017-11-15 21:02:49 -06:00
233e91787f sessionctx: refine sql_mode no_backslash_escapes, to pass ci (#5108) 2017-11-15 08:38:21 -06:00
7fd147bc57 Revert "lexer: support sql_mode 'NO_BACKSLASH_ESCAPES' (#5073)" (#5104)
This reverts commit 294e348f42b2308be7ac38c218709e6a94eced13.
2017-11-14 09:48:59 -06:00
294e348f42 lexer: support sql_mode 'NO_BACKSLASH_ESCAPES' (#5073) 2017-11-12 23:35:49 -06:00
dd5767a581 parser: update the alter table... add column (#5054) 2017-11-09 22:23:25 -06:00
e1882357af parser: support sql_mode "PIPES_AS_CONCAT" (#5012) 2017-11-09 20:37:09 +08:00
6b6d424cb9 parser: support sql_mode high_not_precedence (#5011) 2017-11-08 23:01:23 +08:00
3f3ae07312 parser: parse more privilege types like RELOAD,EVENT and so on (#5013)
RELOAD
CREATE TEMPORARY TABLES
LOCK TABLES
CREATE VIEW
SHOW VIEW
CREATE ROUTINE
ALTER ROUTINE
EVENT
2017-11-07 11:42:21 +08:00
30bcd74a61 parser: support sql_mode REAL_AS_FLOAT (#5029) 2017-11-07 11:03:25 +08:00
32d0fc9e76 parser: support "insert into from selectStmt that has brackets" (#5008) 2017-11-06 07:06:21 -06:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ad1c532ea5 *: remove unused package and functions (#5003)
* *: remove unused package and functions
2017-11-04 03:36:25 -05:00
ba9b1f72be parser: fix alter table add column(...) (#4963) 2017-10-31 05:37:23 -05:00
ecf07101b2 parser: Fix the bug of alter table table_options, other_alter_specification (#4931) 2017-10-31 15:07:49 +08:00
e40ad67efa parser, executor: truncate info field for show processlist and show full processlist support (#4739) 2017-10-26 22:52:13 +08:00
5f74127805 parser: add numeric type signed opt support (#4911) 2017-10-26 19:18:36 +08:00
c55ec3d4a6 parser: ALTER TABLE t ENGINE = 'string' (#4904) 2017-10-26 14:52:56 +08:00
b0d20c9d6b *: parse and ignore REPLICATION CLIENT/SLAVE, USAGE privileges in grant statement (#4870) 2017-10-25 00:26:53 -05:00
2f3d5e8220 parser: add straight_join_syntax support, just treat it as JOIN. (#4872) 2017-10-23 21:07:48 -05:00
befb615245 parser: parse PARTITION BY RANGE COLUMNS (#4852)
Fix issue https://github.com/pingcap/tidb/issues/4844
2017-10-22 22:27:17 -05:00
1a987dd825 *: Support the operation of cancel DDL jobs (#4753)
* *: support cancel the DDL job
2017-10-18 22:28:04 -05:00
b9bf914312 *: dummy implementation for show profiles statement (#4795)
* *: dummy implementation for show profiles statement

* address comment
2017-10-17 03:27:12 -05:00
d5a26905ef parser: add int1, int2, int3, int4, int8 type support (#4803) 2017-10-17 03:15:33 -05:00
a7aaa64c76 parser: parse error compatible (#4238) 2017-10-10 13:00:56 +08:00
9c2ea17722 *: enforce errcheck in Makefile (#4724)
checks all errors and enable errcheck in Makefile

Fixes https://github.com/pingcap/tidb/issues/4668
2017-10-09 17:16:10 +08:00
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
665f62929d *: make "unconvert" happy (#4700) 2017-09-30 15:53:01 +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
eabb62968f meta/autoid: fix ID allocator when transaction failed to commit. (#4585)
* meta/autoid: fix ID allocator when transaction failed to commit.
2017-09-20 20:03:50 +08: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