cfb100541a
evaluator,util/types: clean up builtinDateFormat ( #2292 )
...
rename Time method Format to DateFormat
clean up builtinDateFormat in evaluator
clean up ToNumber use DateFormat method
2016-12-22 14:20:37 +08:00
a49b661f62
ddl: Fix issue 2293 ( #2297 )
...
* ddl: fix issue 2293
2016-12-21 21:32:26 +08:00
f32eaedcb3
Skip constraint check for prewrite when loading data ( #2288 )
2016-12-21 21:16:53 +08:00
d508b6d2da
util/types: workaround for time roundFrac ( #2289 )
2016-12-21 19:45:27 +08:00
c42b03e67c
plan: resolve show stmt in plan builder. ( #2277 )
2016-12-21 18:16:03 +08:00
0adabe53a1
*: begin a transaction in PrepareTxnCtx, unify in transaction. ( #2290 )
...
Transaction should has the same life cycle as TxnCtx, so create a
new transaction in PrepareTxnCtx if transaction is nil or invalid.
2016-12-21 16:48:19 +08:00
e49ca0355e
meta/autoid: add TestAsyn ( #2286 )
...
* meta: add TestAsyn
2016-12-21 15:36:07 +08:00
153f216451
plan: resolve table source by infoschema. ( #2275 )
2016-12-21 14:30:45 +08:00
c8ffa17c62
util/types: add calcTimeDiff and update compareTime function ( #2280 )
2016-12-21 11:10:04 +08:00
15e38d6d82
evaluator, util/types: fix mysql week and yearweek function, support mode ( #2284 )
2016-12-20 17:51:01 +08:00
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