Commit Graph

34 Commits

Author SHA1 Message Date
4f95252ab0 *: add Cancel method for tidb.Session, Canceled for context.Context (#2636) 2017-02-22 12:56:20 +08:00
6859d121b9 txn:improvement for point get by unique key or pk (#2631) 2017-02-20 22:39:36 +08:00
36e9570051 *: concurrently begin a transaction and compile (#2393) 2017-01-05 15:00:43 +08:00
64484a4257 *: refactor context.Context (#2298)
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +08:00
7e2f769e54 *: remove mockContext in the package of ddl (#2132) 2016-11-29 19:44:15 +08:00
ea894e8b77 *: Add a function GenByArgs for Error (#2033)
*: Add a function GenByArgs for Error
2016-11-27 13:18:43 +08:00
0af8520a78 sessionctx/variable: remove dependency on context package. (#2064)
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
1c6c145f94 *: Set custom verbose flag to true (#1956)
* *: set custom verbose flag to true

* *: update .gitignore
2016-11-05 18:00:13 +08:00
ade11fe9f4 *: support history read. (#1734)
* *: support history read.

This commit only handles the case when scheme does not change.
Use history schema will be supported in the following PR.
2016-09-19 15:37:30 +08:00
945fd1d371 *: add error trace (#1477) 2016-07-20 11:50:33 +08:00
d3cb90559b *: change Context method FinishTxn to CommitTxn and RollbackTxn. (#1253)
Makes it easier to read.
2016-05-24 13:17:01 +08:00
08034540f0 *: Add leak test
* *: add leak test and tiny clean up

* *: unify test format and add leak test

Conflicts:
	store/localstore/compactor_test.go
	mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
3a25f68469 *: replace interface with Datum in ast.Row. 2016-03-02 15:32:42 +08:00
b5fbabc05e *: Remove plan.go/stmt.go/rset.go
Move interface into ast and remove interfaces.
2016-03-01 13:53:48 +08:00
68eb8e567e *: remove old code 2016-02-29 11:40:32 +08:00
0b99e0440b *: Move variable errors to sessionctx/variable 2015-12-24 15:27:41 +08:00
xia
22bb76409b *: address comments 2015-12-14 11:36:49 +08:00
7583446a5d *: address comments 2015-12-12 16:41:12 +08:00
xia
200686bd57 *: rename mockStatist to mockStatistics, and
do tiny clean
2015-11-18 13:33:38 +08:00
xia
051a476b2a *: update code structure 2015-11-17 14:49:55 +08:00
xia
1b721ab994 Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into zimuxia/show_status
Conflicts:
	ddl/ddl.go
	session.go
2015-11-16 13:27:38 +08:00
dbf676c820 *: update the function call 2015-11-16 09:58:01 +08:00
xia
48f6bc4b0d *: add UnknownSystemVar 2015-11-10 21:31:40 +08:00
xia
ed741a3c98 util: update error 2015-11-10 20:59:57 +08:00
xia
415085546b Merge branch 'master' into zimuxia/issue525
Conflicts:
	expression/variable.go
	parser/scanner.l
	plan/plans/show.go
	plan/plans/show_test.go
	stmt/stmts/set.go
2015-11-09 20:22:05 +08:00
xia
f35ec29b6c *: rename GlobalSysVarAccessor to GlobalVarAccessor,
use GetSysVar and GetStatusVar.
2015-11-09 20:02:49 +08:00
xia
5cd36d05f1 *: add GetGlobalStatusVar and SetGlobalStatusVar function,
rename GlobalSysVarAccesssor to GlobalVarAccesssor
2015-11-09 19:41:00 +08:00
7d49f39f2e *: Use Bind/Get global sysvar accessor instead of type assertion 2015-11-09 13:02:30 +08:00
407d99967e *: Refactor some code to support global system variable. 2015-10-26 14:35:06 +08:00
c4bf073996 util: do some cleanup. 2015-10-02 20:25:23 +08:00
93d4b77a32 util/mock/mocks: add package comment. 2015-09-22 10:21:06 +08:00
2e4c197cd6 util/mock/mocks: add license header. 2015-09-22 10:09:41 +08:00
89a8cbdef9 util/mock: move mocks to mock package 2015-09-22 09:57:54 +08:00
0d6f270068 Add files 2015-09-06 12:08:47 +08:00