Commit Graph

326 Commits

Author SHA1 Message Date
8a3705ee40 expression: change the round rule for approximate value to round to nearest even (#21324) 2020-12-10 11:34:52 +08:00
3b1e1027fd expression, json: fix converting from string to decimal (#21592) 2020-12-09 17:23:20 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
7e3074afa3 ddl: support column type change from JSON type to other types (#21266) 2020-12-04 00:14:48 +08:00
0c3c4c588a *: Let binary literal can be convert to enum and set (#20789) 2020-12-02 20:15:18 +08:00
83c1652633 expression, executor: allow insert strings with overflowed trailing spaces (#20987) 2020-11-24 18:06:16 +08:00
afb2ab95f0 table: fix zero date in different sqlmode (#20206) 2020-11-24 12:46:51 +08:00
4897ecdba2 planner, type: fix AggFieldType error when encouter unsigned and sign type (#21062) 2020-11-24 11:33:24 +08:00
49a1527893 expression: adjust int constant when compare with year type (#21099) 2020-11-19 19:04:53 +08:00
99bdecc966 ddl: fix float precision larger than 53 (#20458) 2020-11-13 14:08:36 +08:00
a81c89f89b ddl: support column type change from date time type to other types (#20778) 2020-11-12 19:06:42 +08:00
ef57bdbbb0 *: fix somes bugs related to the clustered index and the new collation (#20934) 2020-11-12 15:18:15 +08:00
e608e4bca9 ddl: fix the enum's default value where create table (#20849) 2020-11-11 20:18:17 +08:00
7ab3649256 executor, types: fix skipped replace when the value is treated as the same in CI collations (#20858) 2020-11-11 19:38:23 +08:00
8d35f17c17 Update the errors dependence to the latest version (#20917) 2020-11-10 09:50:39 +08:00
dy
cc0bef82b7 util, types: fix overflow & adjustment for the year type in index ranger (#20338) 2020-11-06 17:14:54 +08:00
c243a0b8ce expression: fix ADD_DATE daylight saving time change (#20871) 2020-11-06 11:40:01 +08:00
feab4cb9b8 executor: fix skipped update when the value is treated as the same in CI collations (#20786) 2020-11-04 17:07:16 +08:00
6785ae626a ddl: support column type change from numeric to other types (#20729) 2020-11-04 14:43:34 +08:00
480a45acee ddl: refine reorg warnings receiving logic (#20707)
Signed-off-by: AilinKid <314806019@qq.com>
2020-11-03 21:18:01 +08:00
c9d7089d86 ddl: add charset info in show create table if column is generated (#20347) 2020-11-03 15:56:53 +08:00
ccd48eeb4d expression: make str_to_date() more compatible with MySQL (#20298) 2020-10-28 19:06:25 +08:00
bf043c2d1f executor, expression: Fixed the warning messages when calling str_to_date function failed (#20415) 2020-10-28 14:04:01 +08:00
23d8b30470 expression, executor: add iso 8601 and timezone support for temporal string literal (#20534) 2020-10-27 16:24:59 +08:00
3db90e4256 types: fix incompatible result of DATE_ADD() (#19880) 2020-10-26 11:10:14 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
8ed9a6ff6d expression: fix TIMESTAMP func get wrong result with decimal (#15185) (#20088) 2020-10-15 15:46:03 +08:00
79327861ba expression: Wrong warning when compaing binary column (#17824) (#19983) 2020-10-12 11:28:17 +08:00
a7f9d7a67a expression: fix data too long when convert to bit returns null value (#20241) 2020-10-09 14:20:10 +08:00
eb81a67b33 expression: fix overflow error when convert bit to int64 (#20266) 2020-09-30 13:00:09 +08:00
xhe
2809a57981 types: fix year conversion (#19781) 2020-09-29 11:51:07 +08:00
fd0a18a90c types: fix FLOAT data overflow check (#20067) (#20158) 2020-09-27 18:57:42 +08:00
6271bd472e expression: fix inaccurate error info for year column out of range (#18871) 2020-09-23 15:52:30 +08:00
462927bf31 types: fix datetime lower part overflow check (#19822) 2020-09-22 19:30:08 +08:00
94704d0cc4 expression: incorrect error message of inserting enum & set (#19380) 2020-09-11 15:48:24 +08:00
449587a085 *: using standard error to replace terror (#19425) 2020-09-08 20:15:51 +08:00
05809a9cf2 Revert "expression, types: fix decimal precision for SUM function (#19592)" (#19882) 2020-09-08 18:21:18 +08:00
dy
726341146b expression, types: fix decimal precision for SUM function (#19592) 2020-09-07 16:23:54 +08:00
9c344ce66e types: fix bug of converting enum and set (#19699) 2020-09-03 23:43:49 +08:00
c56f318349 expression: support %r and %T format for STR_TO_DATE() (#19474)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Zhang Jian <zjsariel@gmail.com>
2020-09-02 09:53:00 +08:00
7690e292c1 expression: fix incorrect implementation in builtinRealIsFalseSig (#19658)
* fixup

* fixup
2020-09-01 19:58:24 +08:00
e24d1455af types, executor: refine convertToMysqlEnum when src is of type Enum (#19640)
* types, executor: refine convertToMysqlEnum when src is of type Enum

* remove useless code

* refine

* add a TODO for collation

* add test for collate

* remove useless code

* address comment

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-01 19:35:12 +08:00
ba60cf5a69 charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation (#18776) 2020-08-27 23:20:48 +08:00
f5fa3e7aa7 executor: fix index join error when join key is ENUM or SET (#19235)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-24 20:50:51 +08:00
bb675c0d63 types: check KindNull / KindMinNotNull / KindMaxValue when comparing datums (#19259)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-24 16:47:52 +08:00
30636c5fdf types: compare nil by type assertion in datum value setting (#19225) 2020-08-18 11:47:51 +08:00
759e00c2fa types: nil/null should be regarded as value instead of type (#19157) 2020-08-14 14:42:29 +08:00
0448a54875 types: fix wrong hash key for decimal (#19131)
* types: fix wrong hash key for decimal

* fix bug

* fix & add test

* address comments and add test

* add test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 19:29:17 +08:00
2b05ffd6e8 expression: cast json_extract as bool (#18948)
* fix mocktikv json expression

* fix issue 12233

* remove MysqlJSONS function

* add test case and fix literal to bool

* go fmt

* add more test case

* update test case
2020-08-07 16:53:48 +08:00
4170007fb6 *: remove mysql.TypeDecimal (#18787) 2020-07-29 15:26:22 +08:00