Commit Graph

204 Commits

Author SHA1 Message Date
83a3a09d36 Merge pull request #740 from pingcap/coocood/type-infer
optimizer: typeInferrer supports more expression.
2015-12-18 15:05:34 +08:00
fbc938e7b6 optimizer: address comment 2015-12-17 14:56:11 +08:00
2e1cf26a32 optimizer: typeInferrer supports more expression.
This is require for implementing prepared statement, because binary protocol depends more
on the result field type to decode value, we have to correctly set the result field type.

For statement like 'select ?', the type of the field is unknown until we execute the statement with argument,
If the field type of  parameter marker `?' is not set properly, client will not be able to read the value.
2015-12-16 18:35:45 +08:00
a90413a656 kv, table: use minimal kv interfaces 2015-12-16 17:22:25 +08:00
edf2641df7 *: fix bytes convert issue 2015-12-15 17:22:40 +08:00
42d2694f37 Merge pull request #717 from pingcap/disksing/update-codec
update codec
2015-12-15 10:07:32 +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
a66bc590bc util/codec: remove stringFlag 2015-12-11 12:47:20 +08:00
65954424d1 *: address comment 2015-12-10 20:31:51 +08:00
c5480f2bb9 util/codec: use passed-in buffer in encode functions 2015-12-10 20:22:44 +08:00
ef71bb7e2a util/codec: address comments 2015-12-10 17:25:33 +08:00
9b4f43e62f util/codec: add varint and compactBytes 2015-12-10 15:17:44 +08:00
82b9b4c499 kv: remove kv.encoder, use codec directly 2015-12-10 11:13:05 +08:00
befec95fe5 util/codec: address comment. 2015-12-09 21:31:07 +08:00
af6635b079 *: address comments. 2015-12-09 19:08:37 +08:00
2d5d930ee2 Merge branch 'master' into qiuyesuifeng/refector-codec 2015-12-09 18:17:06 +08:00
8f988bfdb4 util/codec: add bytes codec test. 2015-12-09 17:59:33 +08:00
d44db8b272 Merge pull request #651 from pingcap/coocood/new-plan
optimizer, executor: Use new plan for simple select statement.
2015-12-09 17:37:26 +08:00
d0a8009db5 util/codec: address comments. 2015-12-09 15:55:00 +08:00
a111613c9c util/codec: address comments. 2015-12-09 14:35:48 +08:00
512dbae5ae util/codec: fix type and tiny update comment. 2015-12-09 12:00:02 +08:00
df410c9eb6 *: tiny clean up. 2015-12-08 22:31:49 +08:00
25ba003d1c util/codec: use sign bit codec instead of number sign. 2015-12-08 22:12:35 +08:00
67ae65a176 util/codec: tiny refactor number codec. 2015-12-08 20:41:49 +08:00
883e520c4a util/codec: tiny refactor decimal codec. 2015-12-08 18:51:26 +08:00
d722320bda util: remove codec record key to tables package. 2015-12-08 16:39:42 +08:00
958ce2284f *: tiny refactor table record/index key codec. 2015-12-08 15:35:14 +08:00
44819de730 *: fix key prefix. 2015-12-08 14:16:03 +08:00
8f0ff0c1fc util: update key codec. 2015-12-08 10:25:19 +08:00
689d47c7ed *: tiny refactor encode/decode key. 2015-12-08 00:06:22 +08:00
835e5c4b2f util/codec: remove old bytes codec. 2015-12-07 23:23:19 +08:00
ed051106ea util/codec: fix bytes codec. 2015-12-07 23:20:53 +08:00
355f77ef31 util/codec: add new bytes codec. 2015-12-07 21:21:24 +08:00
281216bfcf *: Support user with anyhost(%) 2015-12-01 11:54:03 +08:00
546d9a8ef8 Merge branch 'master' into coocood/new-plan
Conflicts:
	ddl/ddl_test.go
2015-11-27 19:51:11 +08:00
19d52ba0e9 optimizer, executor: pass test. 2015-11-26 21:17:44 +08:00
575ca779c3 Merge branch 'master' into coocood/new-plan 2015-11-26 20:08:12 +08:00
cf9a23d23b optimizer, executor: build ranges for more expression, pass more tests. 2015-11-26 20:02:28 +08:00
c487a31402 *: merge master and fix conflict. 2015-11-25 19:53:29 +08:00
8ba428e2fe codec: fix typo 2015-11-24 12:01:12 +08:00
e8c8b1fdcb codec: update bytes alloc. 2015-11-24 11:58:40 +08:00
226615adc8 *: Fix deadlock and index out of bound 2015-11-23 16:49:57 +08:00
216c323f3e store: Using RWMutex instead of Mutex and reduce memory allocation 2015-11-23 16:36:21 +08:00
xia
200686bd57 *: rename mockStatist to mockStatistics, and
do tiny clean
2015-11-18 13:33:38 +08:00
9af46bbdb6 Merge branch 'master' into coocood/new-plan 2015-11-18 10:06:35 +08:00
c6888526ec executor: pass more tests. 2015-11-17 21:50:00 +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