0ee8899a6d
session,privilege: upgrade TiDB, prepare data for RBAC ( #9377 )
...
RBAC(role based access control) needs the following data:
* Add account_locked column to mysql.user
* Add mysql.role_edges table
* Add mysql.default_roles table
* Add Create_role_priv and Drop_role_priv privilege
2019-02-22 18:00:01 +08:00
d09e0e36b8
planner, privileges: add CreateViewPriv Support ( #9153 )
2019-02-15 17:11:40 +08:00
469fa877d6
util/hack: define a MutableString type for function hack.String ( #9230 )
2019-02-12 12:30:40 +08:00
ec833bc4d2
*: fix some lints produced by golangci-lint ( #8999 )
2019-01-16 16:44:49 +08:00
00c4ff4fa9
*: refactor Executor.Next() to receive RecordBatch ( #8994 )
2019-01-14 15:04:36 +08:00
c137cada68
*: change golang.org/x/net/context to standard context ( #8579 )
2018-12-05 13:54:00 +08:00
32b1dbd8d5
*: rename "github.com/pkg/errors" to "github.com/pingcap/errors" ( #8136 )
...
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
1028164a17
privilege: add USAGE in show grants for mysql compatibility ( #7955 )
2018-10-19 10:45:55 +08:00
05b37de16e
*: use chunk grow for simple executor ( #7540 )
2018-09-27 09:07:51 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
6e3bbe8e35
*: add HIGH_PRIORITY for the bootstrap SQLs. ( #7616 )
2018-09-06 00:49:12 +08:00
90e4d02152
privilege/privileges: sort user records in privilege cache ( #7211 )
2018-08-02 22:05:41 +08:00
06021c7cfe
remove types.Row interface ( #7170 )
2018-07-27 13:45:03 +08:00
1310996667
privilege/privileges: don't reuse chunk in loadTable function ( #6976 )
2018-07-04 17:37:42 +08:00
ccf6da1a46
*: rename NextChunk to Next ( #6214 )
2018-04-03 20:00:30 +08:00
631141b22c
*: remove Next function for RecordSet ( #6040 )
2018-03-13 21:05:10 +08:00
e1121814d2
*: don't import golang.org/x/net/context as goctx alias ( #5895 )
...
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06:00
4e1a114e68
*: move package context to sessionctx ( #5890 )
2018-02-22 18:03:38 +08:00
f1e89cde19
*: use lower-case of github.com/sirupsen/logrus ( #5400 )
...
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus
* vendor: update pd
* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
fb610e6429
*: change executor Next() interface to Next(goctx.Context) ( #5223 )
2017-11-26 21:17:33 -06:00
02f6bb27c7
*: remove goCtx from session struct ( #5174 )
...
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
81652dbeef
*: remove returned value isNull in Row methods. ( #5131 )
2017-11-17 11:12:41 +08:00
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
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
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
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
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
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
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
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
8907dee098
privilege/privileges: use case insensitive check for DB and Table name ( #2659 )
2017-02-16 18:03:34 +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