63b49c9e42
util: fix issue #9532 , quote database name before running SQL with it ( #9547 )
2019-03-05 14:07:23 +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
9bd1fb8a8d
kvencoder: accelerate kvencoder test executing time ( #8595 )
2018-12-12 13:04:22 +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
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
660191c5d7
util/timeutil: fix data race caused by forgetting set stats lease to 0 ( #7901 )
2018-10-16 15:45:08 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
8058fd644b
util/kvencoder: use reference count to keep single domain instance ( #7094 )
...
BootstrapSession should not be called many times and we should keep
just a single domain instance
2018-07-19 11:03:26 +08:00
c6258e3aeb
kvencoder: fix allocator rebase to a smaller newBase ( #6296 )
2018-04-17 11:29:17 +08:00
e469fab346
kvencoder: add GetSystemVariable and SetSystemVariable to KvEncoder, to get/set system variable ( #6136 )
2018-03-23 17:44:59 +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
de9c192cba
*: move mocktikv from tikv pkg ( #5834 )
2018-02-08 23:31:29 +08:00
74e8c13051
kv_ecndoer: add some test cases about rebase allocator id. ( #5668 )
2018-01-17 19:24:34 +08:00
ecbd60c3ff
*: add arguement StatementContext to Encode functions. ( #5566 )
2018-01-06 17:31:08 +08:00
8b149c3323
Prealloc / collides with package name ( #5560 )
2018-01-05 19:15:54 +08:00
80cf3ed3be
kvencoder: add prepare sql encode support ( #5505 )
2017-12-26 18:32:29 +08:00
00a14b52f0
kvencoder: add EncodeMetaAutoID method ( #5272 )
2017-11-30 19:07:08 +08:00
d815ce1a0d
util : fix problem of kvencoder accessing database without creating in advance ( #5269 )
2017-11-30 15:29:28 +08:00
5f468489ab
util: add kvencoder package, make transfer sql to key-values be possible. ( #5236 )
2017-11-29 18:01:31 +08:00