a89fa8a8d3
*: refact insert logic ( #2252 )
2016-12-20 17:38:23 +08:00
f4e2bcacb2
Makefile: avoid generate parser.go everytime ( #2281 )
...
introduce a parserlib PHONY, and other rules depend on it, rather than parser.
if parser.go already exists and not older than parser.y, avoid generate it.
2016-12-20 14:35:26 +08:00
abc19b08d5
util/types: mysql time's week function ( #2259 )
2016-12-20 11:14:23 +08:00
d0413b1c61
store/tikv: workaround for commit timeout. ( #2276 )
2016-12-19 17:41:58 +08:00
b200cef223
support function rpad ( #2270 )
2016-12-19 16:36:41 +08:00
cbe49fa24f
*: remove evaluate.Eval from ddl ( #2264 )
2016-12-19 14:40:08 +08:00
507201bd12
plan, expression: add test and remove useless code ( #2271 )
...
* plan: add test for logical_plan_builder
* plan: add test in logical_plan_test
* plan: add test and remove useless code
* plan, expression: move test from plan to expression
Move test for constantFolding and constantPropagation from
plan to expression
* plan: remove useless test
* expression: add test
* expression: address comment
2016-12-19 14:04:00 +08:00
368b4db48d
ddl: Reduce the unnecessary memory allocation and make code clearer ( #2268 )
...
*ddl: Reduce the unnecessary memory allocation and make code clearer
2016-12-19 11:16:38 +08:00
3c7ac58d20
server: defer handshake packet make TiDB crash ( #2267 )
...
malformat packet is just an error
out of range panic should not spread to TiDB
2016-12-17 11:24:26 +08:00
5c41bfe549
ddl: Speed up add index phase ( #2260 )
...
* ddl: speed up add index phase
2016-12-16 19:56:30 +08:00
c24c90b4d3
tidb, variable: refactor retry, add TransactionContext ( #2256 )
2016-12-16 11:07:59 +08:00
38a11f2b79
store/tikv: update region error handling. ( #2262 )
2016-12-16 10:57:07 +08:00
b6588b81d4
*: clean up, move strToDate to util/types package ( #2261 )
2016-12-16 10:36:38 +08:00
8eb2bbd37d
parser, evaluator: support mysql builtin functions ln(), log(), log2(), log10() ( #2258 )
2016-12-16 08:52:51 +08:00
893a157301
*: support builtin function timediff ( #2249 )
2016-12-15 19:04:20 +08:00
2f3435237b
plan: refine the index cost elimination ( #2253 )
2016-12-15 10:48:35 +08:00
d406c77c1f
Revert "tidb, variable: refactor retry, add TransactionContext" ( #2255 )
2016-12-15 10:42:04 +08:00
ff0ceb1785
tidb, variable: refactor retry, add TransactionContext ( #2254 )
2016-12-15 10:35:57 +08:00
4095299e9c
*: add comparable varint encoding. ( #2236 )
2016-12-14 21:26:59 +08:00
b0f65761bc
*: clean GetTxn and finishTxn ( #2248 )
2016-12-14 18:37:34 +08:00
4741960b44
util/types: re-implement check time related ( #2233 )
2016-12-14 10:09:55 +08:00
14b66969cb
plan: eliminate tablescan's cost more precisely. ( #2243 )
2016-12-13 22:32:32 +08:00
9c83f3f176
executor: 'INSERT IGNORE' should only ignore KeyExists error. ( #2241 )
2016-12-13 18:31:13 +08:00
41adfaf3ef
plan: Clean up ( #2239 )
2016-12-13 17:57:01 +08:00
2b64abf9b7
domain: fix typo ( #2237 )
2016-12-13 15:57:31 +08:00
f1aaeafade
util/segmentmap: Improve the test coverage ( #2235 )
...
* util/segmentmap: improve the test coverage
2016-12-13 14:41:01 +08:00
abbde2a651
plan: default value can be null when the option is auto-increment ( #2230 )
2016-12-13 10:53:31 +08:00
c7e255eb8a
store/tikv: add rawkv metrics. ( #2228 )
2016-12-13 10:34:14 +08:00
2c7ca81c6b
vendor: update pd-client ( #2231 )
2016-12-13 10:21:50 +08:00
c30849acc0
util/types: provide time Format method ( #2206 )
...
use Format to implement String(), so 00 month and day can be display
2016-12-12 20:31:42 +08:00
43102df978
util/time: ToPackedUint would return error for invalid timestamp ( #2190 )
...
month=0 or day=0 is invalid in timestamp such as 2016-00-00 00:00:00
so ToPackedUint should return error, for those cases.
2016-12-12 18:50:16 +08:00
1f6737ef67
*: remove SetLease method in domain ( #2149 )
2016-12-12 18:26:38 +08:00
35edefb757
*: rewrite the logic of set. ( #2223 )
2016-12-12 17:54:16 +08:00
cd8578c9b8
store/tikv: trim error message. ( #2224 )
2016-12-12 17:39:29 +08:00
24f27a2622
*: types.TimeInternal GoTime method would return error ( #2185 )
2016-12-12 17:22:49 +08:00
fbffe2705f
distsql, executor: fix select channel bug that may discard error. ( #2226 )
...
When select receives two channels, both of them can return, which case will
be selected is undetermined.
Use one channel with resp and error to avoid this issue.
2016-12-12 16:59:13 +08:00
c3e84ad486
Add prompt text ( #2227 )
2016-12-12 16:38:50 +08:00
dd4dcfee36
fix primary key's type ( #2222 )
...
* executor: fix primay key type error
When we do single read index scan, primay key's type should be determined
by it's flag.
* executor: add test
* executor: format code:
* executor: address comment
2016-12-12 01:35:22 -06:00
654f4f49b3
*: Remove the package of bytes ( #2221 )
...
* util: remove the package of bytes
2016-12-12 12:09:48 +08:00
1b8051d3c5
*: set and use Flags to properly handle truncate error ( #2212 )
2016-12-12 11:45:58 +08:00
9ec16203f0
*: rewrite the logic of execute. ( #2217 )
2016-12-10 02:13:01 +08:00
b3efd4c235
util/types: fix bug parseFrac overflow ignored during time Parse ( #2197 )
...
"121231113045.9999999" should parse to
"2012-12-31 11:30:46.000000"
but we get
"2012-12-31 11:30:45.100000"
* fix and add more test
* make golint happy
* address comment
* fix bug
* address comment
2016-12-09 23:07:32 +08:00
9f48b1b2a5
ddl: fix issue #2176 ( #2214 )
2016-12-09 21:11:17 +08:00
d5cf23a838
*: non-unique index doesn't need store value, write a '0' to reduce space ( #2218 )
2016-12-09 21:02:03 +08:00
aca4151716
parser: fix parse explain union statement error ( #2216 )
2016-12-09 20:45:48 +08:00
e149b0ce87
*: rewrite the logic of do statement. ( #2215 )
2016-12-09 20:18:12 +08:00
b723e72baf
ddl: Add a check before building jobs ( #2213 )
...
* ddl: add check before building jobs
2016-12-09 18:48:45 +08:00
a14d99ef5d
server: defend panic for ill-packet with null connection attribute ( #2211 )
...
* server: defend panic for ill-packet with null connection attribute
2016-12-09 17:38:04 +08:00
99b3465c1e
ddl: allocate column ID and index ID in TableInfo. ( #2205 )
2016-12-09 12:31:27 +08:00
5917a784be
parser: fix .1_t_1_x parsed as .1 _t_1_x ( #2210 )
...
it should not be parsed as a .1(float) and _t_1_x(identifier)
instead, it should be .(dot) 1_t_1_x(identifier)
2016-12-09 11:47:46 +08:00