Commit Graph

42 Commits

Author SHA1 Message Date
c1384a26b7 executor, types: format output (#4418) 2017-09-06 16:00:03 +08:00
bc0efef751 executor: Fix DEFAULT output in SHOW CREATE TABLE (#4427) 2017-09-05 09:20:16 +08:00
9367fdddd4 show column comment, table auto-increment; change index default collation (#4303)
* - 1. change index default collation from "utf8_bin" to "A".
- 2. show column comment. fix #4224.
- 3. show table auto-increment. fix #3747.
2017-08-26 17:45:03 -05:00
3f8334e188 *: provide SHOW PLUGINS statement with a dummy implementation (#4278) 2017-08-22 10:58:47 +08:00
a88ebb1cf6 *: use structure to store user identity (#4078)
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
4880d920e7 Pass sessionVars for stats() to support session-scoped status vars. [ci skip] (#3974) 2017-08-02 15:29:16 +08:00
a19ad3f480 ddl: support create index with type and comment (#3814) 2017-07-20 19:01:14 +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
1cc00cdd57 privilege/privileges: skip privilege check for information_schema database (#3675) 2017-07-11 10:28:12 +08:00
c04bc3d8f0 tidb/privilege/privileges: make show databases available with any global privilege (#3666)
* tidb/privilege/privileges: make show databases available with any global privilege
2017-07-08 22:49:08 +08:00
78f4cef342 plan: check database when parsing show tables and show table status (#3655)
* Show errors when no database is selected
2017-07-07 13:40:33 +08:00
aa41e3aaf4 *: support show stats (#3633) 2017-07-06 16:51:59 +08:00
a89f0f037b executor: fix typo. (#3637) 2017-07-06 13:21:43 +08:00
3f296ed82d *: add Trigger_priv column to mysql.user (#3143) 2017-05-03 13:49:07 +08:00
b4f20e6f0b util/testkit: refine testkit (#3177) 2017-04-29 23:20:49 +08:00
aa9a97a051 *: show create table output utf8_bin collate. (#3076)
*: show create table output utf8_bin collate.

We only support case sensitive utf8_bin collation right now, but show create table ignored the collation.
So the dumped DDL statement doesn't contains collation option.
When the DDL statement is executed on MySQL, the collation will be changed to utf8_general_ci.
If the string column is defined as unique key, there would be duplicated key error.

This PR enforce utf8 charset and utf8_bin collation when parse a column definition, and enfore table option
`DEFAULT CHARSET=utf8 COLLATE=utf8_bin` in SHOW CREATE TABLE statement.
2017-04-18 19:54:21 +08:00
654c10fd80 *: use etcd for privilege update notification (#3030) 2017-04-11 19:47:25 +08:00
60ba388e0c *: check visibility for show databases and tables (#2934) 2017-03-28 11:28:50 +08:00
07952cb108 *: basic support show warnings. (#2724) 2017-02-24 16:29:39 +08:00
3474c0e7b1 executor: Fix show create table with multiple fk (#2711) 2017-02-23 00:07:03 +08:00
2acbf242a4 parser: support show keys from table from database syntax. (#2308)
Fixes issue https://github.com/pingcap/tidb/issues/2303
2016-12-23 12:54:48 +08:00
36f0f307a8 parser: support show events (#2099)
* parser: support show events
2016-11-27 22:49:49 +08:00
91050ff1f8 parser: parse decimal literal instead of float literal (#2044)
Improves MySQL compatibility.
2016-11-21 19:29:25 +08:00
39a2c09542 executor_test: clean enviroment for each test. (#2025) 2016-11-18 16:45:13 +08:00
b5cd34aea7 executor: fix show create table null timestamp. (#1968)
Without the extra 'NULL', the create table statement would fail to execute.
2016-11-07 21:17:59 +08:00
c74c4f80fd *: Fix bug in show create table (#1924)
Fix https://github.com/pingcap/tidb/issues/1918
2016-11-02 15:25:12 +08:00
2e79d3f305 executor: Make show create database result the same with mysql (#1915) 2016-11-01 13:43:21 +08:00
5ee84a7a9a *: support show create db (#1911) 2016-11-01 13:11:18 +08:00
a6144ad1e1 *: Support Show processlist (#1907) 2016-10-31 18:23:00 +08:00
04b3bc96d0 executor: show original identifier instead of lower case. (#1909)
Fixes issue https://github.com/pingcap/tidb/issues/1904
2016-10-31 17:57:22 +08:00
9257a4181f *: fix show create table bug (#1689) 2016-09-06 11:30:27 +08:00
afc73a07b6 *: Fix bug in show index for PkIsHandle (#1670) 2016-08-31 23:11:44 +08:00
9a5809943d *: fix show procedure status resolving error. (#1507) 2016-07-27 15:02:44 +08:00
b8bf59592f executor: implement ANALYZE TABLE (#1327) 2016-06-20 11:13:16 +08:00
e742def024 add foreign key on update and on delete support (#1152)
* add foreign key on update and on delete support
2016-04-27 19:44:00 +08:00
b78d02c110 executor: Fix show status bug (#1128)
* executor: fix show status bug
2016-04-21 11:13:06 +08:00
0537b67d2b *: Add more info into TableInfo and fix bug in show create table (#1072)
Fix: https://github.com/pingcap/tidb/issues/1061
2016-04-09 15:59:51 +08:00
08034540f0 *: Add leak test
* *: add leak test and tiny clean up

* *: unify test format and add leak test

Conflicts:
	store/localstore/compactor_test.go
	mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
eb941fb12f *: Support mysqldump dump database
1. Fix bug in show tables like with escape char.
2. Parse but ignore sql_cache/sql_no_cache.
2016-04-07 16:25:49 +08:00
ce96978182 *: Add index option in IndexInfo
1. Add index option in IndexInfo.
2. Show index option content when running show index statement.
2016-03-16 22:09:11 +08:00
58e667fb5f executor: support Show statement. 2016-02-18 15:49:19 +08:00