e7da7d4f95
*: change fsp from int8 to int ( #28347 )
2022-01-27 13:59:12 +08:00
7227ef87da
planner: fix the issue that set wrong length and width for Decimal and Real when using plan-cache ( #29579 )
2021-11-09 10:47:04 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
02fd303db6
expression: fill %s in error of decimal overflow ( #28338 )
2021-09-27 21:02:47 +08:00
83445d626e
expression: fix some problems related to flen ( #27677 )
2021-09-15 14:18:42 +08:00
b0c9d19c5e
expression: remove useless code ( #27700 )
2021-09-01 19:36:13 +08:00
3e8f8bbd99
types: fix inaccurate return type of plus between bit and int ( #26888 )
2021-08-27 16:56:05 +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
dbe1f176a4
Revert: "*: keep the precision of intermediate decimal result as accurate as possible" ( #26443 )
2021-07-21 17:51:35 +08:00
39c9a4d47a
*: keep the precision of intermediate decimal result as accurate as possible ( #26372 )
2021-07-20 20:25:35 +08:00
88b587c08f
expression: fix float64 overflow check in plus/minus real function ( #24179 )
2021-06-24 18:17:25 +08:00
36b04d1aa0
executor: fix null div 0 for partition key expression is incorrect ( #24098 )
2021-04-19 15:17:52 +08:00
e1fccc6e98
expression: add overflow check in multiplyInt ( #22926 )
2021-04-07 10:46:31 +08:00
32a9c3d13c
expression: separated arithmeticModIntSig ( #22137 )
2021-03-29 17:07:24 +08:00
31c13d6e38
expression: fix bugs in builtinfunction ArithmeticMinusInt logic ( #22426 )
2021-02-26 13:00:54 +08:00
931ff98df5
simple fixes for the staticcheck linter ( #18923 )
...
Note that this found 2 bugs where errors were being silently ignored.
These are really simple fixes that didn't require much thought.
There are still more staticcheck warnings that should be fixed.
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 13:38:17 +08:00
4645c6582d
expression: check ErrTruncate/Overflow for CastRealAsDecimalSig ( #18961 )
2020-08-04 14:37:45 +08:00
313ed01f03
expression,executor: fix DIV() as partition expression behavior under ERROR_FOR_DIVISION_BY_ZERO sql_mode ( #17302 )
2020-05-20 17:05:14 +08:00
9d391949cd
expression: refactor logic about checking illegal mix collations ( #16866 )
2020-04-29 16:40:56 +08:00
4755a9b9ef
util: revert util/mathutil ( #14744 )
2020-02-13 11:33:04 +08:00
22fb77ee11
expression: handle ErrTruncated when dividing decimals in non-data-change stmts ( #14438 )
2020-02-07 14:02:52 +08:00
0adab37467
expression: open CAST string as real push down switcher ( #14323 )
...
Signed-off-by: Lonng <heng@lonng.org >
2020-01-06 11:28:02 +08:00
8cbacf0d7c
wasm: fix compile error for wasm ( #14160 )
...
Signed-off-by: 5kbpers <tangminghua@pingcap.com >
2019-12-23 15:17:46 +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
5ea98344c4
expression: add missing setPbCode() for some arithmetic function ( #12864 )
2019-10-22 23:02:00 +08:00
932c4a7bfc
expression: improve length and decimal size when a base type add/minus/multiply a decimal ( #11873 )
2019-08-28 13:29:05 +08:00
1805d7aa01
expression: fix DIV with decimal type ( #11804 )
2019-08-21 19:15:47 +08:00
adb3071c90
*: refine the attribute definition of types.Time and types.Dur… ( #11672 )
2019-08-14 11:30:40 +08:00
f478af034c
expression: fix overflow when signed + unsigned ( #9840 )
2019-03-22 13:37:24 +08:00
d9e02b76dd
expression: remove redundant "errors.Trace()" in "expression" package ( #8609 )
2018-12-07 12:20:31 +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
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
b3cda9a7dc
expression: fix comments mistake ( #7713 )
2018-09-17 14:28:14 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
55565f1c93
expression: fix out of range error for intdiv ( #7492 )
2018-08-28 11:24:48 +08:00
06021c7cfe
remove types.Row interface ( #7170 )
2018-07-27 13:45:03 +08:00
5f7fc80389
expression, types: fix decimal minus/round/multiple result ( #7001 )
2018-07-12 00:02:19 +08:00
c5f9740ed7
expression: fix err message of ErrOverflow in IntDivideDecimal ( #6683 )
2018-05-31 15:21:41 +08:00
4ea89b3505
expression: Fix the decimal fraction of DIV ( #6590 )
2018-05-23 11:42:37 +08:00
b32d6cf712
expression: set pb code for builtinArithmeticDivideDecimalSig ( #6583 )
2018-05-20 21:30:49 +08:00
357d5df66b
remove useless alias ( #6473 )
2018-05-05 22:36:54 +08:00
f21483e6ed
expression: add Clone() for builtinFunc
2018-04-11 10:00:19 -05:00
6cb61dda15
expression: fix type infer for binary literal ( #6151 )
2018-03-27 11:30:00 +08:00
0553deeb42
*:improve code readability and unified aliases ( #5997 )
2018-03-15 10:52:36 +08:00
4e1a114e68
*: move package context to sessionctx ( #5890 )
2018-02-22 18:03:38 +08:00
fc6376981d
*: remove GetSessionVars() in expression evaluation ( #5683 )
2018-01-22 11:04:32 +08:00
07dc46d3cb
expression: refactor hybrid type expressions ( #5550 )
2018-01-06 11:04:50 +08:00
fea4b02ff3
expression, types: "Flen" and "Decimal" of "TypeNewDecimal" should not be -1 ( #5523 )
...
* expression, types: "Flen" and "Decimal" of "TypeNewDecimal" should not be -1
2017-12-31 12:23:04 +08:00
96809723b7
expression: support sql_mode NO_UNSIGNED_SUB ( #5030 )
2017-11-09 14:23:42 +08:00
62433663e5
util/types: change types path ( #5007 )
...
* util/types: change types path
2017-11-04 10:37:14 -05:00