Commit Graph

68 Commits

Author SHA1 Message Date
e7da7d4f95 *: change fsp from int8 to int (#28347) 2022-01-27 13:59:12 +08:00
9ffeff2857 types: convert to new charset before inserting to blob or json column (#31031)
close pingcap/tidb#30690
2021-12-30 21:35:50 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
8e2b96256e types: casting JSON literal null to number types should fail (#30278) 2021-12-02 13:23:54 +08:00
02a8f04531 types: fix return err when decimal from string value (#22407) 2021-11-22 18:15:49 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
212b02cb65 types: migrate test-infra to testify for convert_test.go (#28202) 2021-09-19 08:54:44 +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
73cadf060d ddl: improve MySQL compatibility on time-to-year conversion (#26884) 2021-08-13 22:49:58 +08:00
aa82a038f1 types: fix the bug about the wrong query result for decimal type (#22507) 2021-03-09 15:54:55 +08:00
953de47119 types: fix err check (#23008) 2021-03-04 10:34:54 +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
8a3705ee40 expression: change the round rule for approximate value to round to nearest even (#21324) 2020-12-10 11:34:52 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
7e3074afa3 ddl: support column type change from JSON type to other types (#21266) 2020-12-04 00:14:48 +08:00
dy
cc0bef82b7 util, types: fix overflow & adjustment for the year type in index ranger (#20338) 2020-11-06 17:14:54 +08:00
6785ae626a ddl: support column type change from numeric to other types (#20729) 2020-11-04 14:43:34 +08:00
480a45acee ddl: refine reorg warnings receiving logic (#20707)
Signed-off-by: AilinKid <314806019@qq.com>
2020-11-03 21:18:01 +08:00
79327861ba expression: Wrong warning when compaing binary column (#17824) (#19983) 2020-10-12 11:28:17 +08:00
xhe
2809a57981 types: fix year conversion (#19781) 2020-09-29 11:51:07 +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
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +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
51a1323869 expression/types: check when insert binary literal (#9829) 2020-02-25 14:55:06 +08:00
b596a30e7d types: add more info in test to investigate the fail cause (#14676) 2020-02-07 21:30:19 +08:00
4a63d416ba types: add more info in test to investigate the fail cause (#14640) 2020-02-06 11:26:54 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
4d4678a4dd types: Fix potential timezone related bugs caused by gotime.Local (#13833) 2019-12-20 22:38:25 +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
9dbd475c73 types: refactor the code (#13783)
fix struct variable judgement issue.
remove useless value.
use make function default values.
2019-11-29 18:04:45 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45: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
e168fd93f6 types: invalid year should be 0 (#12715) 2019-10-16 10:35:45 +08:00
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