Commit Graph

109 Commits

Author SHA1 Message Date
e7da7d4f95 *: change fsp from int8 to int (#28347) 2022-01-27 13:59:12 +08:00
5ea64e6e23 expression: change date add function return type (#28133)
close pingcap/tidb#27573
2021-12-31 19:01:51 +08:00
8085c99ddf *: implement analyze predicate columns (#30816)
close pingcap/tidb#31102
2021-12-30 15:45:50 +08:00
e983d320e6 ddl: Allow create timestamp default 0 without sql_mode NO_ZERO_DATE (#30305) (#30507)
close pingcap/tidb#30305
2021-12-28 12:57:49 +08:00
950a274afc golangci-lint: support durationcheck (#30027) 2021-12-14 21:10:35 +08:00
13b7a2d0ef ddl: disallow change columns from zero int to time (#25728) 2021-11-30 22:09:53 +08:00
352811dfc4 types: fix wrong str_to_date() microseconds with leading zeros are not converted correctly (#30122) 2021-11-29 16:29:52 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
5802a6d916 types: remove some unreachable codes. (#27767) 2021-09-08 02:12:58 +08:00
a84ceb801f expression: fix extract bug when argument is a negative duration (#27318) 2021-08-19 13:28:00 +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
36ed0936a6 expression: Improve the performance of str_to_date (#25389) 2021-08-16 12:59:59 +08:00
73cadf060d ddl: improve MySQL compatibility on time-to-year conversion (#26884) 2021-08-13 22:49:58 +08:00
6a84ce3a86 types: fix CAST('2.0.8 X' AS DATE) (#26259) 2021-08-03 16:09:07 +08:00
f3c5c1ec90 expression: fix incompatible timestamp conversion between mysql and tidb (#25612) 2021-07-14 15:59:33 +08:00
8885b70bfe types, expression: fix gotime.local problem (#25510) 2021-07-08 14:59:29 +08:00
cb06e116c1 *: update the golangci-lint and fix all lint errors (#25912) 2021-07-05 13:43:27 +08:00
8434069c5f expression: Improve the compatibility of str_to_date (#25386) 2021-06-25 19:27:23 +08:00
88928adb0f ddl, types: fix int to datetime conversion to avoid useless retry (#24874) 2021-05-26 15:15:36 +08:00
670b5fbcf5 ranger: fix the range construction behavior when the column's type is YEAR (#23559) 2021-04-14 16:03:52 +08:00
1e3921aff5 chore: Refactor code quality issues (#23445) 2021-03-27 15:51:23 +08:00
a3a4a6c4da executor: add new format specifier(%# %@ %.) for str_to_date expression (#22790) 2021-02-19 14:57:27 +08:00
d1d5cc433e time: fix parse datetime won't truncate the reluctant string (#22232) 2021-01-07 14:52:16 +08:00
b232a23e7a expression, types: fix datetime and year comparison error (#20233) 2020-12-18 17:19:30 +08:00
f0c6fa9c25 expression: fix compatibility of extract day_time unit functions (#21601)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-11 17:13:21 +08:00
49a1527893 expression: adjust int constant when compare with year type (#21099) 2020-11-19 19:04:53 +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
ccd48eeb4d expression: make str_to_date() more compatible with MySQL (#20298) 2020-10-28 19:06:25 +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
8ed9a6ff6d expression: fix TIMESTAMP func get wrong result with decimal (#15185) (#20088) 2020-10-15 15:46:03 +08:00
462927bf31 types: fix datetime lower part overflow check (#19822) 2020-09-22 19:30:08 +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
dy
cc0b6f1aec types: fix STR_TO_DATE handling for %h, %r (#18171) (#18428) 2020-07-22 19:01:32 +08:00
f1b21b562a types: match MySQL behavior with datetime delimiters (#17376) 2020-05-29 11:05:35 +08:00
959ad888b0 types: fix StrToDate handling of %h and %p (#17395) 2020-05-28 17:37:13 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
ab17254e3b executor: fix error message when inserting an invalid value for type datetime (#15220) 2020-03-12 12:04:03 +08:00
87bbe7dcbe types: Fix duration parser (#14588)
Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>
2020-02-07 14:30:44 +08:00
9d38c5467a *: use 8 byte MysqlTime format (#14278) 2020-01-31 14:49:06 +08:00
c88ceca2c4 types: fix parse DATETIME/TIME from string incompatible with MySQL (#14547)
Signed-off-by: Lonng <heng@lonng.org>
2020-01-23 16:53:36 +08:00
667f2d7296 types: fix parse date inconsistent with MySQL (#14405)
Signed-off-by: Lonng <heng@lonng.org>
2020-01-09 11:49:15 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
4d4678a4dd types: Fix potential timezone related bugs caused by gotime.Local (#13833) 2019-12-20 22:38:25 +08:00
018d3c3be2 *: fix staticcheck errors in folder types (#13773) 2019-12-04 12:38:42 +08:00
9dbd475c73 types: refactor the code (#13783)
fix struct variable judgement issue.
remove useless value.
use make function default values.
2019-11-29 18:04:45 +08:00
0b9059162c types: Fix potential timezone related bugs caused by gotime.Local (#13752) 2019-11-28 09:45:21 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
61f24d2469 types: Fix "Invalid time format" caused by daily saving time (#13614) 2019-11-20 16:05:04 +08:00