Commit Graph

25 Commits

Author SHA1 Message Date
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
877d0d4d3d *: fix a bug occurred when insert into time column (#6451)
* *: fix a bug when insert decimal or decimal-like string into time col
2018-05-09 10:52:30 +08:00
469b246965 types,expression: make ConvertToTime unaffected by location (#5741) 2018-02-01 06:22:59 -06:00
5db9ac2506 types,util/chunk: refactor Time for Chunk. (#5571) 2018-01-09 10:12:27 +08:00
b1e1a26151 types: refine Time type (#5521)
remove redundant fields, makes it easier to fit in Chunk.
2017-12-30 19:30:35 +08:00
69352a0a29 types: fix parse duration when fsp round overflow 60 seconds (#5199) 2017-11-23 19:23:22 +08:00
a05c8b02d9 types: Make vet happy (#5187) 2017-11-22 14:42:26 +08:00
8b15cb52b7 *: move StatementContext to its own package. (#5177) 2017-11-22 00:11:14 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00