Commit Graph

55 Commits

Author SHA1 Message Date
e7da7d4f95 *: change fsp from int8 to int (#28347) 2022-01-27 13:59:12 +08:00
8e2b96256e types: casting JSON literal null to number types should fail (#30278) 2021-12-02 13:23:54 +08:00
f271148d79 types: Fix comment typo (#29272) 2021-10-31 19:44:50 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
680de922ed *: fix license header (#28085) 2021-09-17 22:26:41 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
a6f52fb450 types: warning information is inconsistent with MySQL when convert string to double/float (#24889) 2021-06-21 11:06:52 +08:00
7c81719568 types: refine JSON conversion, throw err when object/array convert to integer/float/decimal (#21826) 2021-01-04 18:48:23 +08:00
b25f62dce6 expression: fix compatibility behaviors in time_format with MySQL (#21559) 2020-12-17 15:16:57 +08:00
3b1e1027fd expression, json: fix converting from string to decimal (#21592) 2020-12-09 17:23:20 +08:00
7e3074afa3 ddl: support column type change from JSON type to other types (#21266) 2020-12-04 00:14:48 +08:00
6785ae626a ddl: support column type change from numeric to other types (#20729) 2020-11-04 14:43:34 +08:00
79327861ba expression: Wrong warning when compaing binary column (#17824) (#19983) 2020-10-12 11:28:17 +08:00
bca31eaf62 *: refine the behavior of StrToInt and StrToFloat and support convert JSON to date, time and timestamp (#17902)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-22 11:59:24 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
8db471ff1f expression: fix the issue that casting a string to a real number is not compatible with MySQL (#15321) 2020-03-12 16:15:32 +08:00
e58cef5718 expression,types: wrap ParseUint error with stack (#15188) 2020-03-09 14:28:45 +08:00
51a1323869 expression/types: check when insert binary literal (#9829) 2020-02-25 14:55:06 +08:00
9d38c5467a *: use 8 byte MysqlTime format (#14278) 2020-01-31 14:49:06 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
352adc5b00 executor: replace the flag CastStrToIntStrict with InSelectStmt (#14115) 2019-12-18 20:45:17 +08:00
206cdbedfc types: fix insert error when convert string to float (#13716) 2019-12-10 16:03:25 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
c01006acb0 expression: fix incorrect proto fields and add missing overflow handling for arithmatic functions (#12858)
Signed-off-by: H-ZeX <hzx20112012@gmail.com>
2019-11-06 17:39:14 +08:00
33b726adab types: fix undefined behavior in numeric types cast (cast 1<<64 to uint64) (#11968) 2019-10-29 17:18:51 +08:00
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