Commit Graph

665 Commits

Author SHA1 Message Date
191de50646 chunk: make chunk.Row iteratable (#5196) 2017-11-23 12:45:09 +08:00
81012db983 ranger: remove useless field and simplify some logic. (#5101) 2017-11-23 12:40:07 +08:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
f828016e9f *: move sessionctx/domainctx.go to domain package (#5168) 2017-11-22 13:41:58 +08:00
Gin
4d0908736a *: preallocation for slice (#5180)
pre-allocate slice
2017-11-21 20:51:25 -06:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +08:00
a32b8dbcf6 *: use Chunk for TableReader. (#5142) 2017-11-21 10:08:50 +08:00
14ed94132c executor: fix issue #5132, update handle id with some other unique keys report Duplicate keys. (#5138) 2017-11-20 11:06:28 +08:00
ca5d33ddac ranger: check MaxInt64 and MinInt64 to avoid overflow. (#5136)
* ranger: check MaxInt64 and MinInt64 to avoid overflow.
2017-11-18 00:10:14 -06:00
81652dbeef *: remove returned value isNull in Row methods. (#5131) 2017-11-17 11:12:41 +08:00
cf5a22b5fd *: replace *ast.Row with types.Row (#5124) 2017-11-16 18:36:28 +08:00
36d4735c7e plan, ranger: support not in and correct the behavior. (#5057) 2017-11-16 16:23:33 +08:00
11358f6cf6 util: fix a test leak in testPrefixSuite (#5122) 2017-11-16 14:42:18 +08:00
66c19def93 util/codec: support decode data to chunk. (#5066) 2017-11-13 18:34:22 +08:00
32dd95be51 plan: no need to double read in some case. (#5079) 2017-11-13 14:46:21 +08:00
8fd5c7de6e server: use types.Row to write result set. (#5056) 2017-11-10 15:41:02 +08:00
15212587e1 *: remove resolver.go (#4988) 2017-11-10 14:42:10 +08:00
7891b638bc util/testkit: fix Sort (#5044) 2017-11-08 01:33:38 -06:00
5922b7432b ranger: rerange file and rename some method. (#5028) 2017-11-07 19:57:21 +08:00
0977fd07e6 *: begin opentracing from dispatch() and change interface to Execute(ctx, sql) (#5027) 2017-11-07 02:52:15 -06:00
c4e6d2f7a3 ranger: rename some method. (#5036) 2017-11-07 14:36:01 +08:00
1aa2a69f92 expression: remove type assertion on types.DatumRow. (#5005) 2017-11-07 14:17:53 +08:00
55529a5d26 expression: make in more powerful. (#4969) 2017-11-06 15:36:53 +08:00
63347051d7 executor,util/testkit: fix data race in test TestOnlyFullGroupBy (#5020) 2017-11-06 00:59:12 -06:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
ad1c532ea5 *: remove unused package and functions (#5003)
* *: remove unused package and functions
2017-11-04 03:36:25 -05:00
a0f768d8f7 fix typo in comment (#5001) 2017-11-03 09:14:22 -05:00
68fcccdb2c types: fix doDivMod algorithm (#4995) 2017-11-03 21:43:18 +08:00
030b3628d5 *: Remove the check of initialized auto ID (#4971) 2017-11-02 12:24:19 +08:00
ce5a3d639c *: remove localstore dependency. (#4965)
* *: use mocktikv for some tests

* change privilege tests.

* remove localstore dependency.

* fix golint

* fix test leak

* fix go sql test.

* change test

* change test

* address comments
2017-11-02 11:04:27 +08:00
1b9cc4170d types: fix #4954, insert column char(4) with latin1 charset by incorrect padding (#4962) 2017-11-01 23:08:04 +08:00
12bf655413 *: change some tests' storages to mock-tikv (#4961) 2017-10-31 18:18:31 +08:00
67bddaa1ee codec: fix a bug in json decode. (#4949)
Previously after decode a JSON from row, we didn't
advance the index in the bytes. This PR fix this.
2017-10-30 18:12:40 +08:00
c4f29301eb expression: rewrite in behavior. (#4813) 2017-10-28 14:36:21 +08:00
37681cf435 *: opentracing for two phase commit (#4900) 2017-10-26 17:43:45 +08:00
27eedda835 expression: support 'using binary' (#4687) 2017-10-26 16:14:40 +08:00
4550e91919 ddl: Fix rename table bug (#4862) 2017-10-26 12:41:47 +08:00
5ada5ab53c util/chunk: introduce Chunk to replace current datum slice Row. (#4856) 2017-10-25 11:02:40 +08:00
8c7a0907d3 Add retry for dialPumpClient (#4879) 2017-10-24 09:45:54 -05:00
e96321b3f1 ranger: simple improvement for range calc for pk. (#4767) 2017-10-24 20:21:23 +08:00
0306bb0070 tidb: support a plan cache for prepared statements (#3956)
* tidb: support a plan cache for prepared statements
2017-10-24 00:55:51 -05:00
07e05e815d ddl, util: Add highlight to log (#4861)
* ddl, util: add highlight to log
2017-10-23 04:04:52 -05:00
ed7f68ca9b *: Add Row interface (#4859) 2017-10-23 11:36:28 +08:00
7afae3f89c *: support write slow query log into seperate files (#4804) 2017-10-20 14:22:10 +08:00
c49c2d333d inspectkv: rename package inspectkv to admin (#4815) 2017-10-19 21:33:24 -05:00
4bfa5faf63 executor: Add unit test case for ShowExecutor. (#4763) 2017-10-16 10:50:14 +08:00
95a6e1e720 ranger: split detach process from BuildRange. (#4741) 2017-10-12 11:22:18 -05:00
bd8942829a stats: fix bug when convert time to scalar (#4760) 2017-10-12 05:19:33 -05:00
d88344f869 plan, tidb: support plan cache for SELECT statement (#4644) 2017-10-11 22:34:04 -05:00
51a6e6fc48 *: fix ineffectual assignments #4713 (#4746) 2017-10-11 21:26:03 -05:00