Commit Graph

26 Commits

Author SHA1 Message Date
c3f64b2629 *: tiny update for the whitelist plugin (#9271) 2019-02-12 15:54:45 +08:00
2ea6e1bff5 session,server: remove error for RollbackTxn (#9202) 2019-02-11 09:53:12 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
73655f64a1 session: skip the SQL execution if transaction is aborted and reset aborted status in retry (#8942) 2019-01-11 15:26:51 +08:00
94df8d1e30 *: ignore unknown hint and return warning instead of return a parser error (#8685) 2018-12-21 13:44:54 +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
39c0306d5e session: add error log to catch bug stack in Commit (#8687) 2018-12-14 16:48:04 +08:00
30427927f6 *: move session.NewStore to store.New to achieve semantic accuracy (#8617) 2018-12-10 20:53:15 +08:00
e3f3ac24f6 session: add a batch commit session variable for the large transaction (#8293) 2018-12-10 18:29:39 +08:00
f72769cee4 sessionctx/variable: fix field(History) typo in TransactionContext (#8600) 2018-12-07 12:33:03 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
103f2ac2a3 *: add a session variable for window function parser (#8511) 2018-12-04 11:26:59 +08:00
6fb260f8a6 *: redesign trace statement with json output (#8357) 2018-11-21 13:50:18 +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
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
edaec7bdaf *: move Statement and RecordSet from ast to sqlexec package (#7970) 2018-10-21 13:21:26 +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
341dc1009c *: tidb tracing prototype (#7016) 2018-08-31 05:25:16 +08:00
06021c7cfe remove types.Row interface (#7170) 2018-07-27 13:45:03 +08:00
96ac1c7a3c session: add an error type for session (#6496)
* add an error type for session
2018-05-08 21:19:50 +08:00
e215e93948 *: provide a configurable tidb_retry_limit session variable (#6369) 2018-05-03 19:52:53 +08:00
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +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