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
b4df7ca4dc
test: make all the tests run in serial ( #30692 )
2021-12-14 18:06:36 +08:00
7746b6b70a
test: fix incorrect regexp pattern during migrating test ( #30080 )
2021-12-02 05:51:53 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
fde1839702
types: migrate test-infra to testify for time_test.go ( #28107 )
2021-09-17 12:44:42 +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
6a84ce3a86
types: fix CAST('2.0.8 X' AS DATE) ( #26259 )
2021-08-03 16:09:07 +08:00
8885b70bfe
types, expression: fix gotime.local problem ( #25510 )
2021-07-08 14:59:29 +08:00
2852b31fef
types: make golangci-lint happy ( #24037 )
2021-04-15 22:33:52 +08:00
953de47119
types: fix err check ( #23008 )
2021-03-04 10:34:54 +08:00
d1d5cc433e
time: fix parse datetime won't truncate the reluctant string ( #22232 )
2021-01-07 14:52:16 +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
579022cdf3
expression, types: fix unexpected result from TIME() when fsp digits > 6 ( #21652 )
2020-12-11 16:47:52 +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
f1b21b562a
types: match MySQL behavior with datetime delimiters ( #17376 )
2020-05-29 11:05:35 +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
24b6e615d7
types: rename local variable ( #14578 )
2020-01-27 19:29:52 +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
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
61f24d2469
types: Fix "Invalid time format" caused by daily saving time ( #13614 )
2019-11-20 16:05:04 +08:00
8279053fd6
types: fix a bug of FromGoTime when handling rounding ( #12240 )
2019-09-18 13:38:16 +08:00
adb3071c90
*: refine the attribute definition of types.Time and types.Dur… ( #11672 )
2019-08-14 11:30:40 +08:00
479db57ba0
types/time: optimize time convertDateFormat function by remove fprintf ( #11523 )
2019-08-02 11:34:13 +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
c9f0a1c44f
types: Fix checkMonthDay() to correctly handle leap year ( #10342 )
2019-05-05 19:17:45 +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
bf9570a1b8
types: fix incorrect time fraction parsing method ( #9933 )
2019-04-01 12:51:35 +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
961f0d2351
types: improve the code coverage ( #9780 )
2019-03-21 20:32:32 +08:00
ec833bc4d2
*: fix some lints produced by golangci-lint ( #8999 )
2019-01-16 16:44:49 +08:00
3c0d0534f2
server,types: convert zero input correctly for column type year ( #8292 )
2018-11-14 15:25:08 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
a2beedf88a
types: fix date time parse ( #7933 )
2018-10-18 17:55:58 +08:00
5baedaa21c
expression, types: fix some corner case when parsing string to datetime ( #7701 )
2018-10-08 10:35:52 +08:00
5ad005b941
types,expression: Fix parse time from string ( #7654 )
2018-09-11 14:00:25 +08:00
87ce884b2e
*:check max/min timestamp bound with timezone aware ( #6581 )
...
- mytime: max/min configure with UTC tz, convert to local tz during process starting, convert it to session tz before checking bound.
- time: so `check()`/`add()` need force pass `StatementContext` parameter.
- builtin_time: pass `StatementContext` from `b.ctx.sessionVars` into check/add.
- dump: also set timezone for StatementContext with UTC.
- *_test/mock: fix test case, make mock context with stmt TimeZone.
- add testcase for checkTimestamp and mytime convert timezone.
2018-05-24 15:27:38 +08:00