Commit Graph

322 Commits

Author SHA1 Message Date
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
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
9f040b850c expression: rewrite builtin function: INTERVAL (#4421) 2017-09-07 00:02:49 +08:00
c1384a26b7 executor, types: format output (#4418) 2017-09-06 16:00:03 +08:00
0b04d1c6c7 expression: rewrite builtin JSON functions under the new framework. (#4367) 2017-09-06 14:42:35 +08:00
e7e40193f9 distsql,store/tikv: fix analyze table OOM (#4399) 2017-09-05 20:56:44 +08:00
75230f9f1d types, plan: return ErrInvalidDefault when date type column option of create table statement has a now() default value (#4430) 2017-09-05 17:02:47 +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
2ae9abefad expression: partial fix #4340, support date time format when parse duration (#4380) 2017-08-30 19:43:42 +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
c9b62fbdda expression: add json into builtin if function. (#4203) 2017-08-29 17:32:10 +08:00
71694b0597 types: fix EvalDuration not support time format in int #4341 (#4349) 2017-08-29 00:09:17 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
882f341db1 types: remove useless code in datum.go (#4335) 2017-08-28 11:09:30 +08:00
8c6998387a expression, json: fix cast json to other types. (#4265) 2017-08-23 20:16:50 +08:00
31819a8dcb parser, expression: implement builtin function: LAST_DAY (#4290) 2017-08-23 16:34:35 +08:00
8f91590a2b fix: avoid 'binary BINARY' for special field type (#4272)
When parsing DML like 'ALTER TABLE t MODIFY COLUMN a binary', there will
be a node parsed as '... binary BINARY...'. That is wrong, the right result should be '... binary ...'
2017-08-23 09:42:43 +08:00
d0beee7aa0 expression: rewrite builtin function: COALESCE (#4157) 2017-08-22 19:34:34 +08:00
f5fd467f46 *: change terror.ErrorEqual to Error.Equal, which is more effetive (#4217) 2017-08-17 20:06:48 +08:00
fa1bc4559f expression: rewrite builtin function: TIME (#4192) 2017-08-16 16:09:59 +08:00
5f70f63a52 util: add JSON in fieldTypeMergeRules (#4189) 2017-08-16 11:43:57 +08:00
16a5f74ad7 expression: rewrite builtin function: TIME_FORMAT (#4051) 2017-08-16 11:12:05 +08:00
e41d2cf6ae expression: rewrite builtin function: IS_IPV4, IS_IPV6, IS_IPV4_COMPAT, IS_IPV4_MAPP (#4144) 2017-08-15 15:01:37 +08:00
56cb978587 expression, plan: rewrite builtin function: IF (#4137) 2017-08-11 19:43:06 +08:00
5044ad053e types/mydecimal_test: add tests for round with different round_mode (#4139) 2017-08-11 19:22:55 +08:00
6f2b1a2b07 expression, util: refine aggregation func avg (#4145) 2017-08-11 17:10:01 +08:00
b0d488fa8f expression: fix json ci. (#4140) 2017-08-10 21:17:06 +08:00
c51d0f57ed *: support JSON in new expression architecture (#4089) 2017-08-10 15:56:53 +08:00
f1da1cdb82 expression, types: fix issue #3923, builtin function TimeDiff compability and bug. (#4018)
expression, types: fix issue #3923, builtin function TimeDiff compability and bug.
2017-08-09 11:48:28 +08:00
3d7c74f1a4 expression, plan: rewrite builtin arithmetic function: PLUS (#3858) 2017-08-07 22:02:31 +08:00
fafd205f42 *: rewrite ifnull (#4050) 2017-08-07 13:24:48 +08:00
02b56b31ac Fix issue3844 (#4029) 2017-08-04 16:47:45 +08:00
3243b46b62 types: handle zero value in RoundFrac (#3989) 2017-08-02 20:59:33 +08:00
6921161fde types, expression: cast string as time (#3977)
fix issue #3942
TiDB doesn't treat '.' as a special point, '.' is the fractional seconds part delimiter
2017-08-01 23:35:20 +08:00
d0dcb5b0a6 expression, parser: fix issue #3691, cast compatibility (#3894) 2017-08-01 16:47:38 +08:00
01c1d4c5c5 executor: truncate the trailing spaces for "CHAR[(M)]" types (#3878) 2017-08-01 16:15:25 +08:00
dff73cc6e4 *: Modify the Makefile for go vet (#3900) 2017-07-30 23:02:52 -05:00
45b13118ad parser, plan, util: fix alter table does not check the field length limitation (#3859)
* fix alter table does not check the field length limitation of char/varchar
2017-07-27 17:27:50 +08:00
c844ad7cea *: fix two error shade bug. (#3910)
* fix a json decode bug.
2017-07-27 02:40:21 -05:00
91ba0841b0 executor, sessionctx, util: treat decimal truncation as warning during inserting (#3897) 2017-07-26 19:10:42 +08:00
d35acbdf08 types: Fix insert error when column length is zero (#3849) 2017-07-25 18:59:38 +08:00
c605b0d636 infoschema,util/types: fix infoschema not support unsigned (#3818) 2017-07-24 19:45:24 +08:00
6a1df12321 expression: improve unit test coverage for column.go to 94.9% (#3822) 2017-07-20 18:23:48 +08:00
edb9110a7c *: CoerceDatum should deal with truncate error internally (#3799) 2017-07-20 16:46:06 +08:00
26f307a538 util/types: add test for datum eval function (#3795) 2017-07-20 14:42:32 +08:00