Commit Graph

122 Commits

Author SHA1 Message Date
45c9458236 planner: fix select denied message (#9627) 2019-03-11 18:38:08 +08:00
4f232e5c8d executor: add CREATE ROLE support (#9461) 2019-03-01 10:07:28 +08:00
c48ac8af18 session,privilege: fix account_locked default value for root (#9448) 2019-02-25 21:14:17 +08:00
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
aabd330d1e *: support "show create user" (#9240) 2019-02-21 13:58:19 +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
4ad4684da1 privilege,planner: handle View's security privilege check (#9194) 2019-02-12 10:35:18 +08:00
54b6de0880 planner: improve error messages for mysql compat (#9112)
SHOW CREATE TABLE
CREATE USER
DROP USER
2019-01-18 20:58:46 +08:00
572ad80e23 planner: set correct mysql error code (#9095) 2019-01-17 15:01:03 +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
081a2c5ccc planner, privilege: check user priv on SET GLOBAL (#8837)
* planner, privilege: check user priv on SET GLOBAL
2019-01-04 19:32:10 -07:00
8e4d18a7ec domain: run FLUSH PRIVILEGES synchronous on GRANT (#8886)
MySQL compatible behavior.
2018-12-31 07:05:26 -07:00
fe01b1674e planner: privilege check ANALYZE TABLE stmt (#8486) 2018-12-28 11:10:35 +08:00
bd69b15e79 *: add the error check (#8770) 2018-12-24 22:22:00 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
73c91738d7 executor: privilege check USE command (#8418) 2018-11-27 19:06:17 +08:00
7a88c33a67 executor,planner: Improve SET PASSWORD (#8426) 2018-11-26 22:19:51 +08:00
bb6d0a935d privilege: return error on check for missing user (#8112) 2018-11-06 17:27:50 +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
9ec7515743 *: Add few error checks in tests, clean error messages and fix a misspell (#8101) 2018-10-31 18:50:43 +08:00
a6123eaf62 *: Change privilege to use Auth* identity (#7954) 2018-10-29 20:01:31 +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
19e4e2fa9f expression: MySQL compatible current_user function (#7801) 2018-10-16 13:53:07 +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
01c6bd820c privilege: execute admin command must have Super_priv. (#7486) 2018-08-24 21:54:31 +08:00
3d7d81c868 fix etcd watcher goroutine leak test failure (#7408) 2018-08-16 15:15:01 +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
d2799801ae test: fix leak test (#6822)
make sure close dom/store in all test.
2018-06-12 17:14:22 +08:00
c0dea7e936 *: move leak check from each test to suite (#6541) 2018-05-15 20:05:03 +08:00
cd15501cf9 privilege: clean up privilege.Enable variable (#6427) 2018-04-28 07:13:23 -05:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
4a42252baf improve (#6176) 2018-03-29 18:36:32 +08:00
f287451eed tidb: move tidb/*.go to session directory (#6062)
This change makes our top level directory clean.
2018-03-20 09:06:11 -05: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
de9c192cba *: move mocktikv from tikv pkg (#5834) 2018-02-08 23:31:29 +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
ae9d7f5dab *: set session variable MaxChunkSize to 2 for test (#5238) 2017-11-28 13:48:36 +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