Commit Graph

8026 Commits

Author SHA1 Message Date
64cf670b7e xapi/tipb: remove points in select request.
Points was introduced to reduce the data size if there are many point ranges.
But it makes code more complex than expected, and the reduced size is trivial compares to the total package size.

Remove it to simplify code.
2016-03-25 13:07:49 +08:00
8082314f02 Merge pull request #1009 from pingcap/zxylvlp/change-datum-in-ast
evaluator: change interface to datum in evaluator.
2016-03-25 12:13:25 +08:00
419f244031 evaluator: change interface to datum in evaluator package.
Change the remaining string functions.
2016-03-25 12:01:58 +08:00
93c06f236c Merge pull request #1011 from pingcap/shenli/fix-989
executor: Fix replace statement bug when handle is changed.
2016-03-25 11:35:51 +08:00
211a3c0c9c executor: Fix replace statement bug when handle is changed.
Fix: https://github.com/pingcap/tidb/issues/989
When replace row we should check if handle is changed.
2016-03-25 11:04:28 +08:00
ac8897e87e Merge pull request #1010 from pingcap/coocood/executor-x
executor: add XAPI executor.
2016-03-25 10:32:38 +08:00
0157bcddc1 executor: add XAPI executor. 2016-03-25 10:21:59 +08:00
a17cc4e84c Merge pull request #1008 from pingcap/zimuxia/issue#996
*: Fix issue#996 and handle prepared retry
2016-03-24 12:18:23 +08:00
xia
6604c81f5a *: fix issue#996 and handle prepared retry 2016-03-24 12:08:53 +08:00
8fb7a8a522 Merge pull request #1007 from pingcap/shenli/issue-998
executor: Fix set multiple variables bug
2016-03-23 17:53:39 +08:00
cda31ae7ab executor: Fix set multiple variables bug
Fix: https://github.com/pingcap/tidb/issues/998
Refactor some old code.
2016-03-23 17:42:55 +08:00
c3545ebcd3 Merge pull request #1002 from pingcap/coocood/xapi
xapi: add xapi functions.
2016-03-23 17:42:53 +08:00
1662e7ed68 xapi: add xapi functions. 2016-03-23 17:29:05 +08:00
a224bcc57d Merge pull request #1004 from pingcap/shenli/retry-exceed-error
kv: RunInNewTxn returns error when exceeds max retry count
2016-03-23 13:13:12 +08:00
dc0cba2d0c Merge pull request #1005 from pingcap/disksing/isolation-test
store: move isolation_test to /store/store_test.go
2016-03-23 11:17:51 +08:00
e7275037e6 kv: RunInNewTxn returns error when exceeds max retry count 2016-03-23 10:50:42 +08:00
a6fa7b01f8 store: move isolation_test to /store 2016-03-23 10:42:26 +08:00
14bc9a0ddb Merge pull request #1003 from pingcap/shenli/fix-shadow
*: Fix go vet shadow
2016-03-23 10:41:34 +08:00
5fd28ea1b2 *: Fix go vet shadow 2016-03-23 10:32:29 +08:00
ad5657f9a3 Merge pull request #1000 from pingcap/zxylvlp/change-datum-in-ast
evaluator: change the remaining string functions.
2016-03-22 17:58:45 +08:00
2ef0c56ccc Make some change. 2016-03-22 16:12:07 +08:00
abeea90449 evaluator: change the remaining string functions.
Change the remaining string functions.
2016-03-22 14:04:23 +08:00
33197485ab Merge pull request #999 from pingcap/zxylvlp/change-datum-in-ast
evaluator: change concat_ws, left, length, lower, repeat, upper.
2016-03-22 10:19:37 +08:00
1ba2f08a71 evaluator: change concat_ws, left, length, lower, repeat, upper.
Change the interfaces of concat_ws, left, length, lower, repeat, upper to datums.
2016-03-21 20:09:54 +08:00
1e8d1a8566 Merge pull request #983 from pingcap/zxylvlp/change-datum-in-ast
evaluator: Change the interfaces of builtinConcat to datums
2016-03-21 16:36:53 +08:00
c960c81d86 evaluator: Change the interfaces of builtinConcat to datums.
Change the interfaces of builtinConcat to datums.
2016-03-21 16:31:03 +08:00
3019ab7eda Merge pull request #995 from pingcap/coocood/kv-client
kv: add API for kv.Client
2016-03-21 16:05:01 +08:00
ec06184de2 kv: add API for kv.Client 2016-03-21 15:54:02 +08:00
3c6bc80ecd Merge pull request #997 from pingcap/coocood/fix-ci-bandwidth-limit
*: fix ci bandwitdh limit
2016-03-21 14:54:34 +08:00
0573c47a18 *: fix ci bandwitdh limit
travis CI occasionally returns daily bandwidth exceeded error.
This fix follows https://github.com/golang/go/issues/12933
2016-03-21 14:43:24 +08:00
3dbaeb459e Merge pull request #994 from pingcap/coocood/add-tipb
xapi/tipb: add protobuffer files.
2016-03-21 11:11:57 +08:00
7835c7fc06 xapi/tipb: add protobuffer files.
All known features are added, can be stable for a while.
2016-03-21 11:04:54 +08:00
88ca0e4395 Merge pull request #993 from pingcap/coocood/proto-godep
*: add godep `github.com/golang/protobuf/proto`.
2016-03-18 17:15:34 +08:00
0f36b5795a *: add godep github.com/golang/protobuf/proto. 2016-03-18 17:07:53 +08:00
86ea8d4937 Merge pull request #991 from pingcap/zimuxia/issue-962
Fix issue #962 and #986.
2016-03-18 14:44:06 +08:00
xia
4a2fe15c63 Merge remote-tracking branch 'origin/master' into zimuxia/issue-962
Conflicts:
	ddl/ddl.go
2016-03-18 14:38:59 +08:00
xia
7a7026e750 *: add a null kind judgment in the update statement and update comments 2016-03-18 14:29:57 +08:00
3968a09c97 Merge pull request #985 from pingcap/shenli/index-option
*: Add index option in IndexInfo
2016-03-18 13:29:48 +08:00
xia
259916b998 infoschema: make sure the same table using the same allocator. 2016-03-18 12:23:55 +08:00
xia
3be74b359b *: add issue#986 test 2016-03-18 12:23:55 +08:00
xia
0c5e7eb776 table: update comments 2016-03-18 12:23:55 +08:00
xia
4f90f76477 executor: update TestReplace 2016-03-18 12:23:55 +08:00
xia
15c0319294 *: fix issue 962 and handle other questions about auto increment. 2016-03-18 12:23:55 +08:00
6d3eaa1cb3 Merge pull request #979 from pingcap/zxylvlp/optimizer-fix-bug
optimizer: fix a bug in optimizeJoinOrder
2016-03-18 09:50:19 +08:00
de9f7c9965 Merge pull request #988 from pingcap/coocood/remove-restricted-var
tidb: remove RestrictedSQLExecutorKey variable in context.
2016-03-17 12:19:29 +08:00
15356cdd88 tidb: remove RestrictedSQLExecutorKey variable in context.
This variable was intended to prevent restricted SQL from being committed.
But it is executed at statement level, will never be committed, so this is not needed.

Also, when begin a new transaction in executing restricted SQL,
If 'autocommit' is 'on'. This variable makes the new transaction into a unwanted `InTrans` state,
so following statements will not be autocommited.
2016-03-17 10:31:56 +08:00
cf2b1a2916 Merge pull request #984 from pingcap/coocood/dirty-txn
kv: add IsReadOnly method for kv.Transaction.
2016-03-17 09:58:10 +08:00
d4f5400620 kv: add IsReadOnly method for kv.Transaction.
It can be use for query optimization.
2016-03-17 01:12:01 +08:00
ce96978182 *: Add index option in IndexInfo
1. Add index option in IndexInfo.
2. Show index option content when running show index statement.
2016-03-16 22:09:11 +08:00
ae387b3aeb Merge pull request #980 from pingcap/zxylvlp/change-datum-in-ast
evalutator: change the shadowed err
2016-03-16 16:40:24 +08:00