ec833bc4d2
*: fix some lints produced by golangci-lint ( #8999 )
2019-01-16 16:44:49 +08:00
87838774e6
types: let round take effect in converting float string to int string. ( #8279 )
2018-11-26 15:55:11 +08:00
32b1dbd8d5
*: rename "github.com/pkg/errors" to "github.com/pingcap/errors" ( #8136 )
...
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
9ec7515743
*: Add few error checks in tests, clean error messages and fix a misspell ( #8101 )
2018-10-31 18:50:43 +08:00
3febc22811
expression: fix cast json to decimal bug. ( #8030 )
2018-10-29 17:02:32 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
bd08b0bc70
*: make parser package dependency as small as possible ( #7989 )
2018-10-24 13:19:10 +08:00
5baedaa21c
expression, types: fix some corner case when parsing string to datetime ( #7701 )
2018-10-08 10:35:52 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
40a4a2dfe8
fix compatibility bug with convert string to int return wrong result ( #7483 )
2018-08-31 14:47:01 +08:00
98d2a03136
session:don't use utc to created a customized timezone but empty string ( #7424 )
2018-08-21 17:31:29 +08:00
6e7d75299d
test: refine test ( #7414 )
2018-08-16 17:05:59 +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
88b8740724
*: avoid the generation of mysql.TypeNewDate ( #5705 )
2018-01-23 21:41:02 +08: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
970e5b5684
*: replace JSON with BinaryJSON ( #5460 )
2017-12-21 15:20:17 +08:00
c790b50957
types: fix large float64 to bigint ( #5247 )
2017-11-29 15:56:13 +08:00
9921f41491
types: add overflow truncate when convert str to float ( #5130 )
2017-11-22 15:52:23 +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