adb3071c90
*: refine the attribute definition of types.Time and types.Dur… ( #11672 )
2019-08-14 11:30:40 +08:00
1c0b366295
fix ConvertJSONToInt unsigned bug ( #11483 )
2019-08-01 10:40:04 +08:00
5611acd378
types: floatStrToIntStr will failed in some case such as the… ( #11376 )
2019-07-26 21:53:22 +08:00
1e1cc1f325
types: fix string to integer cast ( #11295 )
2019-07-26 19:10:30 +08:00
dcadc0acfb
types: fix uint64 overflow bug in ConvertJSONToFloat ( #11355 )
...
All tests passed, auto merged by Bot
2019-07-25 12:52:40 +08:00
fcc15b1256
types: fix delete error when convert string to float or int ( #10861 )
2019-07-16 19:50:04 +08:00
3ec46b0286
types: fix overflow check of types/convert.go::floatStrToIntStr ( #11114 )
...
Signed-off-by: H-ZeX <hzx20112012@gmail.com >
2019-07-16 16:02:44 +08:00
fef22aec12
types: add some missing unit tests which exist in Coprocessor ( #10966 )
...
Signed-off-by: Lonng <heng@lonng.org >
2019-06-27 20:42:09 +08:00
627bd69235
type: fix float over flow when converting a decimal to an uint by float ( #10405 )
2019-05-15 19:33:18 +08:00
1c21151b11
types,types/json: improve test coverage ( #9977 )
2019-04-09 13:29:42 +08:00
424995d1fa
types: fix converting decimal to datetime and timestamp ( #9899 )
2019-03-30 11:27:05 +08:00
5025d582a7
fix invalid YEAR string is not compatible with Mysql ( #9856 )
2019-03-25 21:49:26 +08:00
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