Commit Graph

799 Commits

Author SHA1 Message Date
0fd962f297 expression, plan: rewrite builtin funcs setvar, getvar (#4479) 2017-09-11 16:18:33 +08:00
d4bfcf0272 expression: rewrite builtin function: CONVERT_TZ (#4463) 2017-09-11 15:48:50 +08:00
acc81043ae expression: Fix cast( date as datetime) error (#4484) 2017-09-11 10:35:58 +08:00
3cd019b39c expression: rewrite builtin function: FROM_UNIXTIME (#4454) 2017-09-08 17:01:28 +08:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
1be6d2478f expression,util/types: update time Add() implementation (#4267) 2017-09-08 00:17:15 -05:00
ebfcd7d90a expression: rewrite builtin function: CONVERT (#4417) 2017-09-08 11:08:39 +08:00
d585abb2c1 expression: add timezone for CastAsTime (#4465) 2017-09-08 00:01:08 +08:00
48c0ecae1c expression: rewrite builtin function: FIELD (#4419) 2017-09-07 20:13:09 +08:00
d82a36b562 expression: rewrite builtin function: INSERT (#4414) 2017-09-07 19:26:59 +08:00
2736812381 expression: rewrite builtin function: EXPORT_SET (#4434) 2017-09-07 18:02:15 +08:00
29f7b570c4 expression: rewrite "fieldTp2EvalTp()" to use "mysql.TypeXXX" instead of "TypeClass" (#4467) 2017-09-07 16:46:18 +08:00
fc209cb1df *: rewrite hex and bit literals (#4415) 2017-09-07 16:28:24 +08:00
f380a746c9 expression: rewrite builtin function: EXTRACT (#4456) 2017-09-07 15:48:45 +08:00
4e580249db expression: rewrite "HashCode()" for "Column" (#4457) 2017-09-07 10:01:05 +08:00
9f040b850c expression: rewrite builtin function: INTERVAL (#4421) 2017-09-07 00:02:49 +08:00
62b6a9961b expression: rewrite builtin function: FORMAT (#4416) 2017-09-06 20:01:00 +08:00
ffa8405879 plan: let "allocID()" return int to make performance happy (#4441) 2017-09-06 17:19:08 +08:00
0b04d1c6c7 expression: rewrite builtin JSON functions under the new framework. (#4367) 2017-09-06 14:42:35 +08:00
9a2fa138f4 should use strings.Contains() instead of strings.Index() (#4447) 2017-09-06 12:59:30 +08:00
ee23ae54a6 Fixed word misspelled (#4448) 2017-09-06 12:03:51 +08:00
92bea5afa4 expression: rewrite builtin function: INTDIV (#4213) 2017-09-05 20:03:02 +08:00
5f00460cf8 expression, plan: rewrite builtin func get_format (#4422) 2017-09-05 15:09:22 +08:00
6ad9d35219 *: rewrite builtin function: CURRENT_TIME (#4360) 2017-09-05 14:42:47 +08:00
0513ab378d expression: rewrite builtin function: TIME_TO_SEC, SEC_TO_TIME (#4342) 2017-09-04 22:36:04 -05:00
de86e7d897 expression, plan: rewrite builtin function: FOUND_ROWS, DATABASE, CURRENT_USER, USER, CONNECTION_ID, VERSION (#4395) 2017-09-02 08:30:13 +08:00
55bbc41069 expression: adjust getFunction context.Context param position (#4400) 2017-09-01 16:03:19 +08:00
82c9c3002a expression: rewrite builtin function:GET_LOCK, RELEASE_LOCK (#4398) 2017-09-01 12:54:16 +08:00
f0aad43fec expression: change isDeterministic to canBeFolded (#4393) 2017-08-31 20:35:13 +08:00
861d844732 expression: rewrite builtin function: UNIX_TIMESTAMP (#4297) 2017-08-31 15:50:17 +08:00
334dd056c7 *: update vendor for tipb. (#4391) 2017-08-31 15:41:24 +08:00
e6985a2f0f expression, types: add NumberToDuration function, use it when cast int as duration, and check whether date is zero and returns error. partically fix #4340 (#4387) 2017-08-31 15:24:51 +08:00
2b1886797e expression: tiny fix. (#4386) 2017-08-31 14:59:59 +08:00
9ae2639077 expression: NOW() should be folded in constant folding stage (#4385) 2017-08-31 12:23:11 +08:00
d739d7fd17 *: support sig push down in mocktikv. (#4364) 2017-08-30 20:28:12 +08:00
2ae9abefad expression: partial fix #4340, support date time format when parse duration (#4380) 2017-08-30 19:43:42 +08:00
b0189e49b8 expression, plan: refine timestamp index selection (#4383) 2017-08-30 19:27:00 +08:00
7f6d60a037 expression: builtin function OCT() handle binary value mistakenly. (#4369) 2017-08-30 10:48:36 +08:00
e6283e9fc6 parser: fix #4354, support empty bit-value literal syntax b'' (#4370) 2017-08-30 10:03:34 +08:00
c50bfbce0b *: rewrite builtin function: STR_TO_DATE (#4357) 2017-08-30 08:30:57 +08:00
62c8d39d93 expression: fix float literals and binary literals (#4365) 2017-08-29 06:44:52 -05:00
c9b62fbdda expression: add json into builtin if function. (#4203) 2017-08-29 17:32:10 +08:00
962b32c5e3 expression: rewrite builtin function: PERIOD_ADD, PERIOD_DIFF (#4309) 2017-08-29 16:23:10 +08:00
f564022e59 expression: set pb code for signatures. (#4358) 2017-08-29 13:45:31 +08:00
b7aa9137b2 expression: rewrite builtin function: MAKE_SET, QUOTE (#4318) 2017-08-29 10:06:19 +08:00
71694b0597 types: fix EvalDuration not support time format in int #4341 (#4349) 2017-08-29 00:09:17 +08:00
f02a615bed expression: remove useless error return (#4347) 2017-08-28 20:34:30 +08:00
8d66f5b08b expression: rewrite builtin function: RLIKE (#4331) 2017-08-28 16:02:19 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
f18f4b40b2 expression: rewrite builtin function: BIT_COUNT (#4332) 2017-08-28 15:16:14 +08:00