Commit Graph

186 Commits

Author SHA1 Message Date
610ac87e0b config: deprecate tikv-client.copr-cache.enable and invisible some copr-cache configs (#22786) 2021-03-10 15:37:51 +08:00
b81e547e66 executor: fix err check (#22991) 2021-03-03 19:26:56 +08:00
f89ab46437 infoschema, executor: Resolve bug where show index from perf_schema had no results (#22772) 2021-02-26 13:58:53 +08:00
7151b4f3b5 config: use tidb_enable_list_partition to enable list table partition feature (#22864) 2021-02-25 22:11:04 +08:00
3ad7f40140 expression: Add warning info for exprs that can not be pushed to storage layer (#22713) 2021-02-20 10:41:57 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
b1bd2856ca config: disable list partition by default since it's an experimental feature (#22045) 2020-12-29 09:56:18 +08:00
6e2bc8fe01 ddl: filter the feature switches in show variables (#21873) 2020-12-18 15:29:50 +08:00
de75e604ff *: differentiate types for user variables (#18973)
Co-authored-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-11-17 17:03:41 +08:00
5080730715 executor: fix the display of large unsigned handle when show table regions (#21026) 2020-11-13 15:26:25 +08:00
9007614f95 executor: fix wrong is-null result of ShowExec.fetchShowIndex (#20287) 2020-11-10 17:51:12 +08:00
c9d7089d86 ddl: add charset info in show create table if column is generated (#20347) 2020-11-03 15:56:53 +08:00
cc7a38327f executor: fix show global variables return session variables also (#19341) 2020-11-02 17:02:51 +08:00
a55a51a163 executor: fix show create table int default value (#20462) 2020-10-28 14:08:37 +08:00
56467c3b4b executor: support show create table for list partition (#20634) 2020-10-27 19:05:59 +08:00
106b04ddab *: Fix sysvars to native type in @@ context (#20394) 2020-10-19 14:13:43 +08:00
3d33bdf49f privilege: fix wrong result of SHOW GRANTS (#19704)
* fix show grants user filter

* address comment

* address comment

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 14:45:20 +08:00
862d8b8996 check privileges for show stats (#19702) 2020-09-03 16:48:44 +08:00
fd328394d4 executor, ddl: show full tables SYSTEM VIEW info (#19451)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-02 10:01:40 +08:00
6fdd609c00 privilege: fix user change after show grants and add user existed check for show grants (#19568)
* fix show grant change user object and add check

* fix lint

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-28 20:54:21 +08:00
2c2ff934b2 util: rewrite parser warings for integer display width (#18775) 2020-08-24 14:52:29 +08:00
ccfc9b2ad0 executor: add foreign keys to SHOW CREATE TABLE (#18360)
This is backwards compatible with dumpers due to the way that TiDB handles foreign keys (set foreign_key_checks=0 behavior).

Co-authored-by: Nullnotnil <nullnotnil@ubuntu.lan>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-29 17:35:08 +08:00
1fed1fb895 tests: remove incorrect use of FLUSH PRIVILEGES (#18361) 2020-07-24 23:25:14 +08:00
aa1d2d2b1b executor,ddl: update auto_random_base in 'show create table' after insertion (#18217) 2020-07-01 10:45:26 +08:00
38f4d869d8 fix auto random base comment in show.go (#16859)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-04-27 17:04:36 +08:00
7b25ce0d94 *: support auto_random table option (#16750) 2020-04-24 23:14:51 +08:00
4e44a74b16 executor: fix show default num and sequence (#16450) 2020-04-17 16:43:09 +08:00
b44f5073e6 executor: support 'SHOW CONFIG' syntax to show configs of PD and TiKV instances (#16230) 2020-04-16 17:51:07 +08:00
1c73deca59 ddl: add syntax for setting the cache step of auto id explicitly. (#15409) 2020-04-10 15:57:51 +08:00
e5bd867c50 executor: show create table ignores 'binary' collate table option (#15842) 2020-04-07 19:24:59 +08:00
ff47c8d05f parser: apply feature-ids special comments to auto_random (#15412) 2020-04-02 20:19:39 +08:00
c74bd8f632 ddl: added (ddl.DDL).Create{Table,Schema}WithInfo (#15806) 2020-04-01 14:59:40 +08:00
1142e659a8 privilege: fix user with % hostname can not show grants. (#15825) 2020-03-30 18:10:19 +08:00
b8ea8fc42c privilege: fix show grants privilege check (#15524) 2020-03-23 21:06:13 +08:00
4adc2582fd show: fix show create table sequence_name (#15241) 2020-03-10 15:51:32 +08:00
fde73403fd expression: Add format_bytes and format_nano_time performance schema functions (#14975) 2020-03-06 11:50:46 +08:00
d457dd7e31 test: correct TiDB-style executable comment version for auto_random (#14858) 2020-03-04 10:29:09 +08:00
568cc224f7 expression: add builtin function WEIGHT_STRING() (#14792)
Add builtin-function WEIGHT_STRING(). MySQL manual described most of its behavior except:

If the input str is of numeric types, WEIGHT_STRING() in MySQL returns NULL, so does this implementation.
If the input str is of other types rather than string or numeric, the result of WEIGHT_STRING() in MySQL is not cleared. I simply evaluated the input as string.
2020-02-28 01:52:19 +08:00
a22ab8f297 expression: support sequence function (#14731) 2020-02-17 20:11:18 +08:00
6d50a47a8b executor: add quote for partition name(close #14477) (#14793) 2020-02-16 19:53:19 +08:00
f036eecc9d ddl: support create/drop expression index (#14117) 2020-01-07 10:29:39 +08:00
fce9870208 ddl,executor: add auto_random column option (#13127) 2019-12-23 14:51:51 +08:00
0a22034420 executor: add SHOW BUILTINS command (#12941) 2019-12-06 14:13:00 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
bc997d7035 executor: split test for speed up (#12881) 2019-10-23 12:58:29 +08:00
9a074ca8a7 executor: fix inconsistent of grants privileges with MySQL when executing grant all on ... (#12330) 2019-10-23 11:33:53 +08:00
d15bf25961 planner: unfold the wildcard when creating view (#11818) 2019-10-22 17:55:16 +08:00
5bf03c8df4 executor: add SHUTDOWN command and privilege check (#12804) 2019-10-21 21:49:56 +08:00
854e68dc69 executor: display column collate in show create table (#12327) 2019-09-27 15:11:01 +08:00
b393b76826 executor, privileges: fix privileges check fail for SET DEFAULT ROLE (#11201) 2019-08-19 13:48:16 +08:00