Commit Graph

15 Commits

Author SHA1 Message Date
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