Commit Graph

108 Commits

Author SHA1 Message Date
bba4c64a00 executor: fix alter user statement for user() and current_user() (#19345) 2020-08-27 15:55:19 +08:00
c5c7bf87bb *: support CREATE / DROP / ADMIN RELOAD STATISTICS (#18880) 2020-08-11 17:27:48 +08:00
6a7ba4aafa executor: make the format of the DB field in slow logs be compatible with MySQL (#18389) 2020-07-13 18:39:41 +08:00
b8fb4b0965 metrics: distinguish transactions by mode (#17912) 2020-06-15 16:20:38 +08:00
5fc4a8c96a executor: fix alter-user with hash string (#17640) 2020-06-03 21:54:27 +08:00
d49573e050 *: refine some logs with incorrect collation (#16275) 2020-04-22 15:23:48 +08:00
20b555cfad privilege: use internal session to run SET DEFAULT ROL ALL (#15525) 2020-03-23 18:44:17 +08:00
aec6143179 *: support require-secure-transport startup option (#15341) 2020-03-17 08:46:45 +08:00
5c68d537f4 *: support reload tls used by mysql protocol in place (#14749) 2020-03-03 10:01:39 +08:00
8f0091ef17 privilege: fix atomic problem of GRANT and REVOKE (#14219) 2020-03-02 15:58:18 +08:00
344c48d3b4 *: change field name 'password' to 'authentication_string' in mysql.user (#14598) 2020-02-19 11:58:42 +08:00
fb44302cb2 executor: fix 'shutdown' diffrent reaction with mysql (#14268) 2019-12-28 21:27:09 +08:00
c6cb405e9e executor: add rollback in releaseSysSession (#14269) 2019-12-27 23:12:02 +08:00
cd07c4550d *: support certificate based authentication (#13955) 2019-12-23 11:37:29 +08:00
cb37596c39 privilege: fix atomic problem of DROP ROLE (#14090) 2019-12-18 20:02:46 +08:00
7c17add7c0 privilege: fix privilege check of CREATE ROLE and DROP ROLE (#13940) 2019-12-11 13:43:58 +08:00
795c630dbc Makefile: Replace Gometalinter to Golangci-lint (#13405) 2019-12-09 15:08:40 +08:00
94481e883d session: if txn invalid do not active it and return an error (#13935) 2019-12-09 13:41:09 +08:00
0730eeca03 *: fix snapshot problem in show table status (#13797) 2019-12-05 13:26:26 +08:00
527c1aef63 privilege: using system session to execute internal sql of RBAC (#13820) 2019-12-04 14:54:09 +08:00
acfc7be794 infoschema: refine error code for package infoschema (#13646) 2019-11-26 10:21:43 +08:00
39a6f7f4cc *: make transaction duration metrics more reasonable (#13444) 2019-11-15 19:17:36 +08:00
5bf03c8df4 executor: add SHUTDOWN command and privilege check (#12804) 2019-10-21 21:49:56 +08:00
0fbd21c085 *: replace pessimistic default config option with global variable (#12041) 2019-09-05 18:32:58 +08:00
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
8a4b60c682 executor, privileges: fix privilege check fail for CREATE USER and DROP USER (#11589) 2019-08-19 19:08:17 +08:00
b393b76826 executor, privileges: fix privileges check fail for SET DEFAULT ROLE (#11201) 2019-08-19 13:48:16 +08:00
c00d8a95cf executor, privilege: fix some two bug of RBAC (#11273) 2019-07-22 13:08:03 +08:00
5886bb90d1 executor: let flush privileges do nothing when skip-grant-table is configured (#10986)
When skip-grant-table is enabled, privilege handle is not initialized, calling flush privileges
would meet nil pointer panic
2019-07-02 10:44:30 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
78881f6d2d executor: execute some statement (create user grant etc) would commit current transaction automically (#10707) 2019-06-06 15:45:48 +08:00
8344801d32 executor,privilege: fix "show grants" result for RBAC (#10571) 2019-05-24 13:18:58 +08:00
96c6ea1ca9 *: support 'tidb_txn_mode' session variable. (#10574) 2019-05-24 00:50:04 +08:00
3439e6be48 executor: add warning for "drop user if exists" (#10395) 2019-05-22 16:53:19 +08:00
373748adf7 *: support pessimistic transaction (experimental feature) (#10297) 2019-05-11 09:48:45 +08:00
1690912375 privilege,executor: update DBIsVisible() function for RBAC (#10261) 2019-05-08 15:23:46 +08:00
0b8ce46f0c priviege, executor: add set role option (#10268) 2019-05-08 14:10:21 +08:00
58d1bb8cb3 privilege: support authentication with active roles (#10125) 2019-04-23 10:05:53 +08:00
abeddab5ba privilege, executor: support SET DEFAULT ROLE (#9949) 2019-04-17 14:25:49 +08:00
4f20b5b9f4 executor, plan: add revoke role support (#9771) 2019-04-11 15:34:29 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
c612252667 executor, planner: add executor to support GRANT ROLE (#9721) 2019-03-30 20:18:47 +08:00
778c3f4a5a privilege, executor: add SET ROLE and CURRENT_ROLE support (#9581) 2019-03-21 13:11:27 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
d4bad4ebb3 executor: add DROP ROLE support (#9616) 2019-03-13 15:01:38 +08:00
4f232e5c8d executor: add CREATE ROLE support (#9461) 2019-03-01 10:07:28 +08:00
84d1513b09 plugin: support flush tidb plugin {name} in tidb-server (#9320) 2019-02-18 13:48:43 +08:00
c3f64b2629 *: tiny update for the whitelist plugin (#9271) 2019-02-12 15:54:45 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00