Commit Graph

47 Commits

Author SHA1 Message Date
b9deb5e7aa privilege: rename interface name from Checker to Manager (#2969) 2017-03-31 10:55:38 +08:00
3c494b7df1 *: add INFORMATION_SCHEMA.USER_PRIVILEGES table (#2963) 2017-03-30 17:10:14 +08:00
60ba388e0c *: check visibility for show databases and tables (#2934) 2017-03-28 11:28:50 +08:00
13fa294a73 *: provide a command line flag --skip-grant-table (#2897) 2017-03-21 18:16:00 +08:00
30fc95ef6d Revert "*: upgrade mysql.user table schema (#2849)" (#2893)
This reverts commit d0ddbaa418d86320b21813d8f8bde45539396787.
2017-03-20 15:22:21 +08:00
d0ddbaa418 *: upgrade mysql.user table schema (#2849) 2017-03-20 14:33:43 +08:00
f765e4ad8f privilege/privileges: make TiDB more robust when mysql.db doesn't exist (#2733) 2017-02-26 19:44:26 +08:00
b3a57325a0 *: make TiDB more robust when synchronize mysql.user table (#2722)
* load privilege table will ignore data that can't recognize
* convert IP to domain for connection verification
2017-02-24 13:04:59 +08:00
a2f2e3f40a tidb,store/tikv: use special session to execute ExecRestrictedSQL (#2687) 2017-02-22 15:08:17 +08:00
8907dee098 privilege/privileges: use case insensitive check for DB and Table name (#2659) 2017-02-16 18:03:34 +08:00
4fd95363b2 *: flush privileges statement (#2602) 2017-02-13 13:17:54 +08:00
281e8553b4 tidb,privilege: use new privilege implementation for connection verification (#2607) 2017-02-09 18:08:37 +08:00
f5fac14afb util/sqlexec: introduce a SQLExecutor interface and use it (#2618)
This tiny change also fix a bug that privilege background session never commit
2017-02-09 16:44:15 +08:00
f0be2c608c privilege/privileges: use stringutil for like pattern match (#2603) 2017-02-07 18:00:38 +08:00
8bafc3d515 tidb: accelerate unit test (#2590)
Avoid BootstrapSession everytime, just do it once in testSessionSuite.SetUpSuite
2017-02-06 15:11:38 +08:00
cb1c2f0ff9 *: update privilege Checker interface and use it (#2557) 2017-02-06 11:28:06 +08:00
1da75c5399 *: load privilege in a goroutine when server initialize (#2489) 2017-01-24 20:13:56 +08:00
9d536e34a7 *: run a bootstrap session before store is ready (fix race) (#2491) 2017-01-22 11:39:25 +08:00
999517c4f1 Revert "*: run a bootstrap session before store is ready" (#2490) 2017-01-17 15:14:24 +08:00
e1ecc1059e *: run a bootstrap session before store is ready (#2481) 2017-01-17 14:46:35 +08:00
e6187d8250 privilege/privileges: MySQLPrivilege caches mysql privilege table (#2388) 2017-01-10 12:11:09 +08:00
0af8520a78 sessionctx/variable: remove dependency on context package. (#2064)
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
1c6c145f94 *: Set custom verbose flag to true (#1956)
* *: set custom verbose flag to true

* *: update .gitignore
2016-11-05 18:00:13 +08:00
3e3ae885f4 *: make race with debug level (#1687)
* *: make race with debug level

* *: fix the problem of compatibility on the Mac

* ddl: pass make race
2016-09-05 15:42:47 +08:00
d2b4ad8814 *: Pass make race (#1521) 2016-07-29 18:45:55 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +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
e697aa3e7e *: Unify import check format and unify test format 2016-04-06 10:47:44 +08:00
xia
6aacddd44e *: unify error format 2016-03-31 16:20:47 +08:00
515f193bd2 *: Remove coldef package
There are lots of redundancies between ast and coldef. So we remove
coldef.
2016-03-05 19:11:04 +08:00
3a25f68469 *: replace interface with Datum in ast.Row. 2016-03-02 15:32:42 +08:00
b5fbabc05e *: Remove plan.go/stmt.go/rset.go
Move interface into ast and remove interfaces.
2016-03-01 13:53:48 +08:00
a66bc590bc util/codec: remove stringFlag 2015-12-11 12:47:20 +08:00
1569edef98 privileges: Address comment 2015-10-30 23:07:36 +08:00
a77e4df407 *: Add privilege check for drop table. 2015-10-30 14:00:02 +08:00
e7a7a0b035 *: Add a test util function to compare unordered string slice 2015-10-28 17:34:10 +08:00
7309adf048 *: Add test case for show grants plan and fix a few bugs 2015-10-28 16:52:58 +08:00
0d1abd5f0b *: Implement ShowGrants for UserPrivileges and add some test cases 2015-10-28 13:27:49 +08:00
09b66390cf *: Support show grants syntax and add ShowGrant interface to UserPrivileges 2015-10-27 22:01:07 +08:00
d7f1e153d3 *: Replace errors.Errorf with errors.New 2015-10-27 14:59:10 +08:00
36119a90e2 privileges: Replace panic with error. 2015-10-27 14:09:34 +08:00
e907d2f84e privileges: Address comment 2015-10-27 13:06:22 +08:00
9df627b816 privilege: Address comment 2015-10-23 16:38:21 +08:00
35f2e98449 *: Refactor privileges
Address comments
2015-10-22 11:31:35 +08:00
138497aaf5 *: Add privilege checker and unit tests. 2015-10-20 16:46:58 +08:00
fd9bcc6f98 privilege: backup 2015-10-20 08:42:36 +08:00
aab178446e privilege: Add privilege checker interface 2015-10-19 22:25:04 +08:00