Commit Graph

30 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
bc4a32431f expression: remove unnecessary convertIntToUint. fix error in… (#11640) 2019-08-12 11:13:10 +08:00
1c0b366295 fix ConvertJSONToInt unsigned bug (#11483) 2019-08-01 10:40:04 +08:00
ab45834fd2 fix error in ConvertJSONToInt error msg (#11493)
All tests passed, auto merged by Bot
2019-07-31 11:09:11 +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
627bd69235 type: fix float over flow when converting a decimal to an uint by float (#10405) 2019-05-15 19:33:18 +08:00
52b7bfda0e types: use switch table to save memory (#9650) 2019-03-12 22:04:22 +08:00
469fa877d6 util/hack: define a MutableString type for function hack.String (#9230) 2019-02-12 12:30:40 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
68ddb7f0e6 *: fix the lower bound when converting numbers less than 0 to unsigned integers (#8544) 2019-01-10 16:04:07 +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
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
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
11616c46c0 types,expression: make 'invalid time format' error log more friendly (#6069) 2018-03-17 06:40:37 -05:00
fc6376981d *: remove GetSessionVars() in expression evaluation (#5683) 2018-01-22 11:04:32 +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