Commit Graph

8026 Commits

Author SHA1 Message Date
a68d3ad1ee executor: "INSERT IGNORE" generate warnings for duplicate-key error (#4381) 2017-08-31 14:29:28 +08:00
1317f2e190 mock-tikv: clean code. (#3405) 2017-08-31 12:32:14 +08:00
9ae2639077 expression: NOW() should be folded in constant folding stage (#4385) 2017-08-31 12:23:11 +08:00
19a13dec6f stats: update handle version before update stats (#4361) 2017-08-31 11:42:05 +08:00
87baaaf73e plan: fix bugs when do natural join or join with using. (#4382)
* plan: fix bug when do natural join or join with using.
2017-08-31 10:06:32 +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
46c1a0e3c3 support INSERT IGNORE with strict sql mode produces warning instead of error (#4376)
* fix infoschema not support unsigned
2017-08-30 17:02:35 +08:00
f4b06bf897 Ignore debug binary of VSCode (#4377) 2017-08-30 03:23:22 -05:00
7f6d60a037 expression: builtin function OCT() handle binary value mistakenly. (#4369) 2017-08-30 10:48:36 +08:00
271f0c0338 executor, types: format output (#4372)
Escape special chars and handle quote marks.
2017-08-30 10:34:50 +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
09b5ddcea9 executor: index join key should be encoded comparable. (#4363) 2017-08-29 19:31:58 +08:00
dd0626e970 domain: close auto analyze (#4366) 2017-08-29 19:07:19 +08: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
b23e3b0594 plan: reverse the logic of func "exprHasSetVar" (#4352) 2017-08-29 12:50:34 +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
29cf5d92c0 executor: fix batch insert on duplicate key (#4344) 2017-08-28 18:42:37 +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
882f341db1 types: remove useless code in datum.go (#4335) 2017-08-28 11:09:30 +08:00
499b2566fe expression: rewrite builtin function: DATE_FORMAT (#4312) 2017-08-27 21:27:11 -05:00
c27a3db4a5 parser: fix bug for parsing builtin UTC_TIME/UTC_TIMESTAMP/CUR_TIME/CURRENT_TIME/CURRENT_TIMESTAMP (#4306) 2017-08-27 21:14:30 -05:00
43bc0a2f4a expression: rewrite builtin function TIMESTAMP (#4327) 2017-08-27 23:29:14 +08:00
ff8072e458 paser, executor: add date literal(#3909) (#4046) 2017-08-27 21:16:47 +08:00
6ee6dd6c84 server: minor log info corrections (#4319) 2017-08-27 20:05:54 +08:00
9367fdddd4 show column comment, table auto-increment; change index default collation (#4303)
* - 1. change index default collation from "utf8_bin" to "A".
- 2. show column comment. fix #4224.
- 3. show table auto-increment. fix #3747.
2017-08-26 17:45:03 -05:00
45a95157b4 executor, plan: fix a bug occurred in set @varname = (select a from t limit 1) (#4326)
* fix infoschema not support unsigned

* change the comment of FieldType's InfoSchemaStr for specification

* fix issue #4302

* use mockPlan instend of process subquery directly

* add test case for issue #4302
2017-08-26 17:15:01 +08:00
6c44eb6eee *: fix bug of union type cast (#4322) 2017-08-26 15:24:52 +08:00
14e0149119 *: Add the DDL SQL log (#4325) 2017-08-24 20:40:48 +08:00
21a417ad65 executor: make auto analyze more conservative (#4284) 2017-08-24 20:25:50 +08:00
656f1652ef vendor: add etcd/contrib/recipes (#4321) 2017-08-24 20:08:38 +08:00
ff57b065e8 expression: rewrite builtin function: DATEDIFF (#4212) 2017-08-24 16:41:11 +08:00
7cf42f56da expression: rewrite builtin function: UTC_TIME (#4304) 2017-08-24 15:40:31 +08:00
a5acbd4df6 expression: rewrite builtin function: DATE (#4314) 2017-08-24 15:23:49 +08:00
71d2da269f expression: rewrite builtin function: DAYNAME (#4317) 2017-08-24 15:19:43 +08:00
f289c9bd25 expression: fix date cmp date (#4294) 2017-08-24 14:50:40 +08:00
c106c37d78 tikv: enlarge batch size (#4315) 2017-08-24 14:28:06 +08:00
1eed36b25e expression: refine built-in func ifnull and if (#4301) 2017-08-24 13:33:52 +08:00
b464481604 vendor: update pd. (#4308) 2017-08-24 11:50:51 +08:00
986fb645f3 expression: rewrite builtin function: CURDATE, SYSDATE, YEARWEEK (#4211) 2017-08-24 10:46:34 +08:00
971d8fa2de server: Refactor server tests (#4207) 2017-08-24 10:21:44 +08:00