Commit Graph

74 Commits

Author SHA1 Message Date
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
523b93651d Add follower read support to TiDB (#11347) 2019-08-16 13:26:17 +08:00
028f63cb4a *: rename tidb_back_off_weight (#11655) 2019-08-07 15:04:56 +08:00
7f3bff8afe session: do not keep history when the transaction retry is disabled (#11192) 2019-07-12 12:42:33 +08:00
cb23b524ac *: directly save prepare execute args as datums in binary proto (#10884) 2019-07-02 13:49:06 +08:00
c32db315ea session,parser: make MAX_EXECUTION_TIME sql hint and global variable work (#10963) 2019-06-28 15:17:57 +08:00
0d563f1e2d stats: fix unstable test (#10953) 2019-06-27 13:51:16 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
a57b6e60a6 *: Add support for MAX_EXECUTION_TIME. (#10541) 2019-06-25 01:18:11 +08:00
04cd877967 session, sessionctx: add unit test for sessionctx, session (#10763) 2019-06-18 15:09:13 +08:00
e9ab859d1d privileges: add SkipWithGrant check for RBAC methods (#10681) 2019-06-05 10:44:27 +08:00
52c9d03a5e support view related privileges in mysql.tables_priv (#9894) 2019-05-22 21:10:46 +08:00
d97e7d93c7 *: refine transaction retry error messages (#10466) 2019-05-15 17:51:07 +08:00
118a88c860 fix pessimistic txn and run pessimistic test (#10432) 2019-05-14 14:57:54 +08:00
aafca88eda executor,sessionctx: add correctness checking for more system variables (#10396) 2019-05-12 19:29:25 +08:00
373748adf7 *: support pessimistic transaction (experimental feature) (#10297) 2019-05-11 09:48:45 +08:00
d8589df2f3 *: add a variable to control the back off time and disable txn auto retry by default (#10266) 2019-05-08 10:23:49 +08:00
041e0e9a0d planner: fix update privilege error (#10085) 2019-05-07 17:34:56 +08:00
71d15aa5a3 make tidb_disable_txn_auto_retry as it used to be (#10339)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2019-05-05 15:15:03 +08:00
efe9b6ab2a planner/core: fix privilege check for update (#10281) 2019-04-30 13:06:54 +08:00
27a56180bd *: replace gofail with the new failpoint implementation (#10184) 2019-04-22 13:30:14 +08:00
b2bce4bde7 domain: add uint tests for global_vars_cache (#9919) 2019-04-02 18:27:59 +08:00
6125f49baf *: fix the read-only check for the prepare/execute statement (#9723) 2019-04-01 13:27:49 +08:00
628dff08b7 *: only disable retry for write conflict (#9827) 2019-03-29 14:36:07 +08:00
4a5b3c2dfd session: use the uniform log format for session (#9517) 2019-03-21 19:28:16 +08:00
637347ef07 domain: remove the MockFailure (#9758) 2019-03-19 13:15:36 +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
d6d97259ec planner/core: fix a bug that check update privilege use wrong AsName and DBName (#9003)
* Fix issue 8911
* Check privilege should use table OrigName, instead of AsName
2019-01-10 17:49:25 +08:00
084aa5a030 config: add initChunkSize config item, make chunk start with 32 (#8480) 2019-01-07 11:14:47 +08:00
164747c76b session: validate value for global time_zone sys variable (#8876) 2018-12-29 15:57:40 +08:00
44f2c2c381 Makefile: make 'make check' faster (#8755)
* remove vet check
* make lint check on $(FILES)
2018-12-21 11:12:18 +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
7528a059cf executor/server/session: add extra info message sent to mysql client (#8285) 2018-12-19 15:32:49 +08:00
7056bb0d32 executor, session: refine insert unsigned bigint autoIncreID (#8181) 2018-12-18 23:01:10 +08:00
e3f3ac24f6 session: add a batch commit session variable for the large transaction (#8293) 2018-12-10 18:29:39 +08:00
ce622ec6d8 session: move more session vars to stmt context for retrying (#8034) 2018-12-10 16:39:43 +08:00
93acd10f53 *: add context.Context to NewTxn(), tiny refactor (#8530) 2018-12-06 17:45:16 +08:00
312e0f7e9d session: skip global variable cache in unit test (#8594)
If the global variable cache is used, the test code has to sleep a while
to ensure it load the fresh data. This may slow the CI
2018-12-06 16:15:03 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
654c6a9888 session: add GoString() for TxnState and make the log more use friendly (#8434) 2018-11-29 10:30:39 +08:00
89cd59d217 planner/core,session: fix privilege check for update (#8376)
In the statement: "update t1,t2 set t1.id = t2.id"
TiDB should check update privilege for t1 and select privilege for t2,
Fix a bug that it checks update privilege for both t1 and t2
2018-11-21 18:15:13 +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
ce6a7150b3 executor: Support NO_AUTO_CREATE_USER sql mode (#8160) 2018-11-12 13:45:37 +08:00
508f5dd626 binlog: use pumps client to write binlog (#8070) 2018-10-27 17:52:01 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
ee0d4d6c64 executor: print arguments in execute statement in log files (#7684) 2018-10-09 15:24:25 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00
5b689e8c5b server: fix insert zero timestamp bug with prepared statement (#7506) 2018-08-28 13:36:36 +08:00