Commit Graph

88 Commits

Author SHA1 Message Date
e7da7d4f95 *: change fsp from int8 to int (#28347) 2022-01-27 13:59:12 +08:00
316a2206de expression: don't set charset of RetType to binary for date_add and date_sub func (#31817)
close pingcap/tidb#31809
2022-01-20 15:17:46 +08:00
d9d89d69d1 expression: fix nil pointer dereference for case expression (#30479)
close pingcap/tidb#30245
2022-01-05 10:18:35 +08:00
5ea64e6e23 expression: change date add function return type (#28133)
close pingcap/tidb#27573
2021-12-31 19:01:51 +08:00
8e11e0367f *: fix the flen type datetime for union/case-when/control-funcs (#30588) 2021-12-17 13:14:35 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
e7aeae7eda expression: migrate test-infra to testify for constant_propagation_test.go (#30430) 2021-12-07 16:29:55 +08:00
4947cf1f59 expression: fix wrong result of greatest/least(mixed unsigned/signed int) (#30121) 2021-12-02 13:11:53 +08:00
083be6d859 expression: fix flen for timestamp_add (#30213) 2021-11-30 17:57:54 +08:00
8858592f7e expression: fix wrong flen for CastAsString funtion (#29563) 2021-11-23 17:03:51 +08:00
8e93dc5edb expression: fix flen and decimal for ceil, floor, truncate, round (#29923) 2021-11-22 18:01:49 +08:00
fef05d77d2 expression: fix wrong flen when cast decimal to string (#29687) 2021-11-18 10:13:47 +08:00
184c3e3649 expression: migrate test-infra to testify for typeinfer_test.go (#29613) 2021-11-11 16:59:05 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
abae1fbb3f expression: fix invalid Flen of decimal value when using plan cache (#28100) 2021-09-27 15:04:48 +08:00
d97cd8ea6d expression: refactoring returning time type (#28252) 2021-09-26 10:42:46 +08:00
c52cc5efa7 expression: fix fsp for timestamp function (#28136) 2021-09-22 12:30:45 +08:00
e262e59842 expression: refine and fix some functions' return type (#27991) 2021-09-15 15:46:41 +08:00
83445d626e expression: fix some problems related to flen (#27677) 2021-09-15 14:18:42 +08:00
39a1b43666 *: fix some problems related to notNullFlag (#27697) 2021-09-09 11:04:38 +08:00
8370cab551 planner: rename BuildLogicalPlan to BuildLogicalPlanForTest (#27606) 2021-08-26 18:42:05 +08:00
90626b8a49 ddl, expression: fix some string functions' flen and refine error message for expression index (#27376)
* done

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2021-08-20 21:13:58 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
fb3a30ea04 expression: builtin function current_date() and curdate() should return DATE t… (#24950) 2021-05-28 15:27:35 +08:00
f3557bb591 planner, executor: supports select statement with AS OF (#24613) 2021-05-27 21:11:35 +08:00
2c67a8011c expression: fix wrong flen infer for bit constant (#23867) 2021-04-25 16:23:55 +08:00
7cf12a68ac *: add test for modifying default length of cast as decimal (#23680) 2021-04-07 13:24:31 +08:00
7229416bae functions: fix some string function has wrong collation and flag (#23835) 2021-04-07 12:42:32 +08:00
920b70d97c planner: set right null flag for constant value (#23172) 2021-03-12 16:10:55 +08:00
01a39ae671 expression: fix wrong type inferring for ceiling function. (#21920) 2020-12-22 17:03:59 +08:00
3eaa63d679 expression: Fix unexpected panic when using IF function. (#21132) 2020-12-14 17:02:55 +08:00
c3c3063b66 expression: set IsBooleanFlag for boolean scalar functions (#20706) 2020-12-07 17:22:48 +08:00
b28f8adfed expression: set flen to -1 when cast float to string (#21409) 2020-12-07 16:38:21 +08:00
93c3e6becd *: fix default decimal precision (#21162) 2020-11-21 21:07:54 +08:00
b6b4c67640 planner: the precision of a decimal type should not be more than MaxDecimalWidth (#21046) 2020-11-13 20:11:43 +08:00
a338e35932 expression: fix wrong inferred type for sum and avg (#20926) 2020-11-11 14:10:34 +08:00
80f3c9e836 expression: unset binary flag for *_bin collation column (#20269) 2020-10-04 11:01:10 +08:00
5eaaa5c649 expression: fix a bug that from_unixtime + union all returns truncated result (#20225)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-27 12:39:38 +08:00
64d3fb8f37 Revert "fix wrong flen in cast functions (#19020)" (#19606)
This reverts commit a363130f4e7277dbb027ce1e1e66e953e59ff416.
2020-08-31 13:20:29 +08:00
a363130f4e fix wrong flen in cast functions (#19020) 2020-08-30 17:07:27 +08:00
4490148b4e server: correct the length field in reply packets to the client for enum and set column types (#18897) 2020-08-04 20:15:32 +08:00
027105ff1b expression: fix the wrong behavior of char function (#17598)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-19 12:11:54 +08:00
06361c2d98 expression: fix type infer error for count (#17871) 2020-06-11 10:22:54 +08:00
583956dff5 expression: fix type infer for decimal property in count agg (#17368) 2020-06-05 12:43:49 +08:00
57db6cec7f expression: fix charset and collation for current_role (#16019) 2020-04-04 16:02:15 +08:00
20703ee8a6 expression: return binary charset and collation if there is no string-type argument in DeriveCollationFromExprs (#15250) 2020-03-10 17:26:46 +08:00
e5f350cd32 expression: fix NULL constants' FieldType of multiple arguments function (#14571)
Signed-off-by: Lonng <heng@lonng.org>
2020-02-04 15:27:17 +08:00
a0ea49c342 expression : fix bug in insert select union select. (#13632) 2019-11-20 20:36:03 +08:00
c01006acb0 expression: fix incorrect proto fields and add missing overflow handling for arithmatic functions (#12858)
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
2019-11-06 17:39:14 +08:00
36f0f37b40 expression, planner: remove some fields from `expression.Colum… (#12573) 2019-10-29 15:48:26 +08:00