Commit Graph

64 Commits

Author SHA1 Message Date
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
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
3040788655 *: make errcheck work again (#8795) 2018-12-25 17:16:52 +08:00
a7907ede7a *: remove fail field from TxnState (#8712)
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
f72769cee4 sessionctx/variable: fix field(History) typo in TransactionContext (#8600) 2018-12-07 12:33:03 +08:00
93acd10f53 *: add context.Context to NewTxn(), tiny refactor (#8530) 2018-12-06 17:45:16 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
558e02dbce executor: fix grant operation in ANSI_QUOTES sql mode (#8561) 2018-12-04 20:55:24 +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
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
0c3e9c1652 session,executor: run statement without transaction (#8260)
`set @@autocommit = 0`
`select 1` // This statement should not make the session enter a transaction,
because it never need Txn().
Make txn lazy initialize
2018-11-14 20:10:58 +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
508a83607a Changed FTWRL to produce error (#7712) 2018-10-12 10:04:22 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
33367fdd48 config,executor: provide a compatible-kill-query option in the config file (#7192)
When compatible-kill-query option is turned on, "kill xxx" command will not be
ignored, it works like "kill tidb xxx".
2018-07-30 23:53:47 +08:00
f9a5686f9b executor: make set system variable log shorter (#7029) 2018-07-11 14:09:22 +08:00
3f574d97c9 stats: refactor stats update mechanism (#6901) 2018-07-06 11:22:11 +08:00
a54ab4270c executor: gather all the error definitions together (#6772) 2018-06-07 10:58:03 +08:00
7227db3a0c executor: fix drop user bug (#6624) 2018-06-06 17:13:28 +08:00
93efc51b96 *: unify the connection ID format in log (#6670)
Makes tracing the events of a session easier.
2018-05-29 00:31:16 +08:00
d3a69d8b04 *: set rollback log to debug level (#6653) 2018-05-26 22:11:27 +08:00
4185e53006 tikv/txn: support local latch in transaction (#6418) 2018-05-07 10:57:01 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
96a51da57c * Add conn ID to the transaction log (#6115) 2018-03-26 20:13:07 +08:00
11f41a3ef8 executor: remove Next function for SimpleExec (#6001) 2018-03-16 09:20:09 +08:00
928582c720 executor,ast: check password format for 'create user identified by password XXX' (#5948)
'create user xxx identified by yyy', yyy can be any text
'create user xxx identified by password yyy', yyy must be a hash string generated by
password(), it begin with * and has length 41
2018-03-05 21:30:54 -06: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
fdd0e6d78b stats, executor: fix drop stats not working (#5739) 2018-01-30 11:19:04 +08:00
47cbc0bfce *: remove varsutil package, make Systems a private member of SessionVars (#5544) 2018-01-25 01:43:07 -06:00
5a555703c0 *: garbage collect useless stats info (#5587) 2018-01-11 17:10:30 +08:00
5c882361cd executor: support Chunk for SimpleExec (#5453) 2017-12-21 11:04:16 +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
713bc797bb *: clear delta info when roll back transaction (#5390) 2017-12-13 15:35:07 +08:00
f49413ec86 executor: show warning for kill pid statement (#5210) 2017-11-29 13:07:37 +08:00
e440ac32f4 executor: notify TiDB update privilege after alter/drop user (#5226) 2017-11-26 21:45:24 -06: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
f828016e9f *: move sessionctx/domainctx.go to domain package (#5168) 2017-11-22 13:41:58 +08:00
0977fd07e6 *: begin opentracing from dispatch() and change interface to Execute(ctx, sql) (#5027) 2017-11-07 02:52:15 -06:00
35fe2cae42 ddl, statistics: resolve the package dependency. (#4960) 2017-10-31 17:13:30 +08:00
37681cf435 *: opentracing for two phase commit (#4900) 2017-10-26 17:43:45 +08:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00