Commit Graph

183 Commits

Author SHA1 Message Date
cfef1bc52f planner/core: add a range check against display width of BIT column type (#11942) 2019-09-02 17:19:31 +08:00
e415ced76e types/json: fix an over-quoted bug in BinaryJSON.Unquote function (#11934) 2019-08-30 17:18:35 +08:00
bdbaeb419d executor: decrease the memory usage of hashTable in HashJoinExec (#11832) 2019-08-29 14:45:52 +08:00
932c4a7bfc expression: improve length and decimal size when a base type add/minus/multiply a decimal (#11873) 2019-08-28 13:29:05 +08:00
46f1dc15f6 types: convert EOF error to ErrTruncate when parse duration (#11865)
* fix time_func

* check warnings
2019-08-26 17:36:55 +08:00
59ea7460a8 planner: PointGet don't rely on names in expression.Column (#11779) 2019-08-26 15:40:39 +08:00
8d165f0fd2 executor: copy row data instead of refereeing chunk.Row in some window functions. (#11678) 2019-08-22 10:57:54 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00
bc4a32431f expression: remove unnecessary convertIntToUint. fix error in… (#11640) 2019-08-12 11:13:10 +08:00
0dc91069d8 table: avoid redundant encode in insert/update/delete. (#11532) 2019-08-07 10:16:48 +08:00
ddafdff8f7 expression: fix date_add func in SECOND INTERVAL (#11312) 2019-08-05 15:22:16 +08:00
479db57ba0 types/time: optimize time convertDateFormat function by remove fprintf (#11523) 2019-08-02 11:34:13 +08:00
1c0b366295 fix ConvertJSONToInt unsigned bug (#11483) 2019-08-01 10:40:04 +08:00
ab45834fd2 fix error in ConvertJSONToInt error msg (#11493)
All tests passed, auto merged by Bot
2019-07-31 11:09:11 +08:00
5611acd378 types: floatStrToIntStr will failed in some case such as the… (#11376) 2019-07-26 21:53:22 +08:00
1e1cc1f325 types: fix string to integer cast (#11295) 2019-07-26 19:10:30 +08:00
566c3278e3 expression: improve the compatibility with mysql when datatime is invalid. (#11445)
All tests passed, auto merged by Bot
2019-07-25 18:12:06 +08:00
dcadc0acfb types: fix uint64 overflow bug in ConvertJSONToFloat (#11355)
All tests passed, auto merged by Bot
2019-07-25 12:52:40 +08:00
ddb6132e82 expression, types: fix Mod(%), Multiple(*), Minus(-) operators meets inconsistent 0 results. (#11251) 2019-07-19 12:37:25 +08:00
dd06ebb315 fix microseconds behaviour in DATE_ADD() (#11280) 2019-07-17 14:39:55 +08:00
fcc15b1256 types: fix delete error when convert string to float or int (#10861) 2019-07-16 19:50:04 +08:00
3ec46b0286 types: fix overflow check of types/convert.go::floatStrToIntStr (#11114)
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
2019-07-16 16:02:44 +08:00
d98fb747c0 types: fix incorrect weekday for ALLOW_INVALID_DATES mode (#10864) 2019-07-12 15:10:30 +08:00
d47f1687f3 expression: add built-in function json_array_insert (#11076) 2019-07-08 14:54:56 +08:00
973a3e7d0b types: add ToString method for HexLiteral and BitLiteral (#11029) 2019-07-02 18:01:58 +08:00
fef22aec12 types: add some missing unit tests which exist in Coprocessor (#10966)
Signed-off-by: Lonng <heng@lonng.org>
2019-06-27 20:42:09 +08:00
0d563f1e2d stats: fix unstable test (#10953) 2019-06-27 13:51:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
bb01a5f55c fix invalid json (#10510) 2019-06-06 13:52:09 +08:00
627bd69235 type: fix float over flow when converting a decimal to an uint by float (#10405) 2019-05-15 19:33:18 +08:00
6a3a73a52d *: add_date can return mysql.Time (#9830) 2019-05-14 10:06:10 +08:00
d241d741b9 expression: addition between datetime and interval is not compatible with Mysql (#10329) 2019-05-10 15:20:57 +08:00
f3ab907dcc types: rename CopyRow and CopyDatum to Clone* (#10333) 2019-05-09 19:26:01 +08:00
c9f0a1c44f types: Fix checkMonthDay() to correctly handle leap year (#10342) 2019-05-05 19:17:45 +08:00
a594287e9f expression/json: add builtin function JSON_SEARCH (#8704) 2019-04-18 19:48:01 +08:00
7423c3c85f types: extract month support 0 (#10116) 2019-04-11 17:34:52 +08:00
1c21151b11 types,types/json: improve test coverage (#9977) 2019-04-09 13:29:42 +08:00
3faafb2d5e types: use a faster way to compute the FieldType.Flen of a int64/uint64 (#9726) 2019-04-04 15:05:51 +08:00
76a01da313 remove unnecessary expensive trace call and log from hot path (#10025) 2019-04-03 23:09:51 +08:00
bf9570a1b8 types: fix incorrect time fraction parsing method (#9933) 2019-04-01 12:51:35 +08:00
e31e8f1560 *: reduce runtime.growslice by preallocation (#9946) 2019-03-31 10:31:06 +08:00
3d04337605 *: fix bugs when window function meets prepare (#9795) 2019-03-30 20:11:16 +08:00
cebc7ffad9 types: refine the parsing logic of INTERVAL to correct DATE_ADD/DATE_SUB (#9874) 2019-03-30 18:34:37 +08:00
424995d1fa types: fix converting decimal to datetime and timestamp (#9899) 2019-03-30 11:27:05 +08:00
94f163d98e expression: fix issue that date_add and date_sub is incompatible with MySQL (#9702) 2019-03-29 17:57:29 +08:00
97f88f70d5 expression: fix issue that results of unix_timestamp()-unix_timestamp(now()) is wrong and not stable (#9884) 2019-03-29 15:20:28 +08:00
5025d582a7 fix invalid YEAR string is not compatible with Mysql (#9856) 2019-03-25 21:49:26 +08:00
99defc0c48 types: fix time_format is not compatible with MySQL (#9841) 2019-03-25 13:47:16 +08:00
5137c4d215 types: replace RoundMode by int32 type (#9809) 2019-03-23 10:20:14 +08:00
b78490e403 *: use the unified log format for the remaining packages (#9743) 2019-03-22 16:34:47 +08:00