99c4a15ce4
parser: add complex query bench ( #7815 )
2018-09-30 16:38:16 +08:00
cfd4544801
ddl:support show create table with compression ( #7782 )
2018-09-26 18:13:03 +08:00
b098b47b0b
parser,ast: parse admin show slow statement ( #7688 )
...
Add the following new syntax:
* admin show slow top [internal | all] N
* admin show slow recent N
2018-09-26 14:04:54 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
b2bfd8f91a
executor: support load data with ignore lines ( #7576 )
2018-09-06 22:58:06 +08:00
e7afbb2713
*: make analyze buckets number configurable ( #7619 )
2018-09-06 17:16:23 +08:00
a18d27ea14
parser: fix single line comment end with newline ( #7612 )
2018-09-05 10:29:11 +08:00
1f2841fbd4
ddl: year type should have an unsigned flag ( #7542 )
2018-08-31 16:45:38 +08:00
69d5e36ac4
*: bump go version to 1.11 ( #7491 )
2018-08-29 21:48:50 +08:00
2ac2faf29f
parser: support SUBPARTITION grammar for table partition ( #7470 )
2018-08-23 16:39:04 +08:00
43e9c06a59
parser/opcode: fix format function for mod opcode ( #7455 )
2018-08-22 10:42:43 +08:00
69b13c59d6
parser: enhance the compatibility for table partition ( #7440 )
...
* 'COMMENT = xxx' and 'COMMENT xxx' are both acceptable, '=' is optional
* Add 'TABLESPACE xxx' to partition definition option
* For 'ENGINE = xxx', 'COMMENT = xxx', 'TABLESPACE xxx' options, the order is exchangable
2018-08-21 16:58:05 +08:00
2ae4f7f3d2
parser: add 'IDENTIFIED WITH' option on create user statement ( #7402 )
...
* fix issue 7295
2018-08-17 13:52:28 +08:00
4684eec521
parser: support to character option to load data statement ( #7391 )
2018-08-15 11:05:43 +08:00
bfceb5072f
support of character in create table statement ( #7378 )
2018-08-14 01:14:38 +08:00
87b16fca27
support for flush status ( #7369 )
2018-08-13 16:38:36 +08:00
f59f696d23
ddl: add partion function check when create partion table ( #7111 )
...
* ddl: add partion func check when create partion table
2018-07-23 20:40:10 +08:00
461663652d
*: support 'admin show ddl jobs <number>' grammar ( #7028 )
2018-07-12 14:49:14 +08:00
cc722546ef
ddl:support alter table drop partition ( #6460 )
...
support alter table drop partition
2018-07-11 18:26:19 +08:00
fd3706148f
lexer: support more syntaxes regarding 'SET Syntax' ( #7020 )
2018-07-10 18:20:33 +08:00
10151e1598
parser,ast: parse statement execution time optimizer hints ( #7012 )
2018-07-08 17:08:29 +08:00
490af37d1e
*: add scope check when get system variables ( #6958 )
2018-07-03 17:12:18 +08:00
cef2ebde62
*: support 'SHOW ERRORS' statment and reports errors in 'SHOW WARNINGS' statement ( #6936 )
2018-06-29 19:09:12 +08:00
401577b8dc
parser:support order by in select from dual ( #6871 )
2018-06-26 16:49:21 +08:00
c562bfff6f
ddl:support table partition in alter table add partition ( #6421 )
...
support alter table add partition
2018-06-26 12:40:51 +08:00
20c5675831
parser: support 'CREATE TABLE ... SELECT' syntax ( #4754 ) ( #6851 )
2018-06-22 16:21:01 +08:00
f21ac4af5f
parser: allow comments end with multi asterisk ( #6847 )
2018-06-18 15:02:36 +08:00
37c41fd7ea
*: support 'show privileges' ( #6792 )
2018-06-11 15:43:14 +08:00
08817bdb1b
parser: support drop column cascade syntax, parse it and ignore it. ( #6791 )
2018-06-10 18:00:42 +08:00
12d4c5aea5
*: support 'show master status' ( #6785 )
2018-06-08 12:36:12 +08:00
8e00ca98f4
plan, parser: fix wrong LIMIT/ORDER BY check of the UNION statement ( #6783 )
2018-06-08 10:52:08 +08:00
db4888a697
plan, parser: fix the wrong result of the UNION statement ( #6752 )
...
tidb diff result with mysql when mix use union and union-all fix #6731
- rename `selectStmt.UnionDistinct` to `selectStmt.IsAfterUnionDistinct`
- add explain test
- remove useless `unionStmt.Distinct` and `selectList.Distinct`
- refactor use golang slice, remove dup code
- return WrongNumColumnInSelect error and add test case
2018-06-07 17:08:26 +08:00
f56e130eed
ddl, parser: support 'ALTER TABLE RENAME KEY TO' syntax ( #6475 )
2018-06-07 13:32:17 +08:00
12a62e86b1
*: Fix select lock option for union statement ( #6579 )
...
If for update appears after order by or limit in union, then it is ignored.
If there is no order by or limit, it affects only the near select statement.
This locks both statements.
```
select * from t for update union select * from s for update;
```
This is syntax error:
```
(select * from t) union all (select * from s) for update;
```
2018-06-06 22:17:09 +08:00
e2b23619f0
*: adding trace syntax support ( #6644 )
2018-06-03 18:40:47 +08:00
46da21b5c1
*: support select tidb_is_ddl_owner, to figure out whether tidb instance is ddl owner ( #6682 )
2018-06-01 17:56:44 +08:00
02d59ee2b3
parser: combine from and or into FromOrIn ( #6724 )
2018-06-01 11:36:11 +08:00
d963ee7348
parser: support 'ALL' for 'BIT_AND', 'BIT_OR', 'BIT_XOR' ( #6685 )
2018-05-30 14:03:48 +08:00
ff7c0cedb8
plan, parser: support JOIN hint for UPDATE/DELETE statements ( #6626 )
2018-05-25 14:00:57 +08:00
d1bd647732
support high_priority for delete/update/replace into ( #6592 )
2018-05-23 12:35:16 +08:00
ec06a514a7
parser: support 'use index' in delete statement from single table ( #6570 )
2018-05-18 14:56:17 +08:00
39e1db6b7b
parser: fix the compatibility problem of UNION statement ( #6335 )
2018-05-14 15:22:49 +08:00
9cd410d9b2
parser: support 'ALTER TABLE FORCE' syntax ( #6476 )
...
* support 'ALTER TABLE FORCE' syntax
2018-05-06 17:16:50 +08:00
7aee5f77d6
parser: index name in 'alter table drop index' should not be empty ( #6474 )
2018-05-06 07:47:36 +08:00
f09bdf46e2
parser: support opt_bin_mod ( #6456 )
2018-05-05 23:05:32 +08:00
8b57ce24ce
parser: support more ODBC syntaxes ( #6399 )
2018-04-28 14:32:01 +08:00
2b3ccc4ad3
parser: support alter convert to syntax ( #6416 )
2018-04-28 13:51:27 +08:00
fe6b3f833a
parser: support 'ALTER TABLE t AUTO_INCREMENT number' syntax ( #6417 )
2018-04-28 11:14:29 +08:00
2e076142c1
parser: fix 'SET NAMES' syntax ( #6404 )
2018-04-27 11:36:20 +08:00
7266631988
parser: trying to fix maxvalue list ( #6309 )
2018-04-20 15:53:17 +08:00