cf5a22b5fd
*: replace *ast.Row with types.Row ( #5124 )
2017-11-16 18:36:28 +08:00
ec9d1f0cc6
*: simplify RecordSet.Fields. ( #5068 )
2017-11-12 12:07:18 +08:00
0977fd07e6
*: begin opentracing from dispatch() and change interface to Execute(ctx, sql) ( #5027 )
2017-11-07 02:52:15 -06:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00
ce5a3d639c
*: remove localstore dependency. ( #4965 )
...
* *: use mocktikv for some tests
* change privilege tests.
* remove localstore dependency.
* fix golint
* fix test leak
* fix go sql test.
* change test
* change test
* address comments
2017-11-02 11:04:27 +08:00
b0d20c9d6b
*: parse and ignore REPLICATION CLIENT/SLAVE, USAGE privileges in grant statement ( #4870 )
2017-10-25 00:26:53 -05:00
c0bc20a217
privilege/privileges: use pattern match to check dbRecord in mysql.db ( #4733 )
...
grant all privileges on `te%`.* to 'user'@'host';
This will create a record in mysql.db, all databases with name prefix 'te'
(such as 'test', 'temp') will be available to 'user'@'host'
2017-10-11 03:13:42 -05:00
2eab78fddc
privilege/privileges: fix show grants display empty entries ( #4734 )
2017-10-10 20:23:08 -05:00
c2691114b4
*: check errors part 2 ( #4704 )
2017-10-09 12:46:45 +08:00
88e1666ac6
*: change the log package to logrus ( #4452 )
2017-09-08 00:45:07 -05:00
a88ebb1cf6
*: use structure to store user identity ( #4078 )
...
*: use structure to store user identity
2017-08-14 03:37:36 -05:00
cf6b839b1f
privilege/privileges: fix a data race in test code ( #3706 )
2017-07-11 12:51:00 +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
900fa9fbb9
expression:rewrite password using new expression evaluation architecture ( #3593 )
2017-07-04 17:48:11 +08:00
77c7e0037a
tidb: add some privilege columns to mysql.db ( #3532 )
...
* tidb: add some privilege columns to mysql.db
Create_tmp_table_priv
Lock_tables_priv
Create_view_priv
Show_view_priv
Create_routine_priv
Alter_routine_priv
Execute_priv
Event_priv
Trigger_priv
2017-06-27 10:18:11 +08:00
7c9e18621f
*: add some privilege columns to mysql.user ( #3445 )
...
Create_tmp_table_priv
Lock_tables_priv
Create_view_priv
Show_view_priv
Create_routine_priv
Alter_routine_priv
Event_priv
2017-06-13 21:11:43 +08:00
7d634a5486
*: fix a data race in privilege handle Update() ( #3389 )
...
privilege handle bind a ctx to call Update(), but it may be
called by multiple goroutines, so data race in that ctx.
change Update() to take a context parameter, avoid using the
same ctx to fix the race.
2017-06-07 11:30:11 +08:00
f453b19341
privileges: Upgrade stored password format to Compatible with MySQL. ( #3292 )
...
Password stored in mysql.user of TIDB is the format of SHA1(pwd),
which is not compatible with MySQL.
Different password format will cause user migrate data from MySQL
login failed on TIDB.
2017-06-01 09:37:41 +08:00
9b6fc032fc
*: add References_priv to mysql.user ( #3343 )
2017-05-26 17:58:32 +08:00
04f9318525
privilege:correct comments mistake ( #3250 )
2017-05-12 17:46:20 +08:00
3f296ed82d
*: add Trigger_priv column to mysql.user ( #3143 )
2017-05-03 13:49:07 +08:00
4e18816bb6
tidb-server: check privilege feature set the default value to true ( #2995 )
2017-05-02 14:36:03 +08:00
a9a33b0209
fix typo ( #3179 )
2017-04-29 00:24:27 +08:00
0595143194
*: add Process_priv column to mysql.user ( #2994 )
2017-04-28 22:35:46 +08:00
eba4e7138b
privilege: clean up some old code ( #3005 )
2017-04-06 22:43:46 +08:00
f7cc682eed
*: support Super_priv ( #2990 )
2017-04-05 19:21:07 +08:00
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