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
ed7f68ca9b
*: Add Row interface ( #4859 )
2017-10-23 11:36:28 +08:00
64bc8cb6cb
expression: remove "self" field in "baseBuiltinFunc" completely ( #4766 )
...
* expression: remove "self" field in "baseBuiltinFunc" completely
* address comment
2017-10-13 04:55:25 -05:00
83ace4f748
expression: return NULL when error is not nil ( #4749 )
2017-10-11 03:38:03 -05:00
b4ad894b0a
expression, plan: do come code clean and make golint happy ( #4681 )
2017-09-29 10:35:47 +08:00
f89db5b6ec
expression, types: export "evalTp" to "EvalType" and move it to package "types" ( #4626 )
...
* expression, types: export "evalTp" to "EvalType" and move it to package "types"
* add source file
* change "ETJSON" to "ETJson"
2017-09-26 11:25:27 +08:00
45bdd69cde
*: support signature push down. ( #4495 )
2017-09-25 18:58:42 +08:00
069cc8b222
expression: open new expression framework by default ( #4595 )
2017-09-22 15:29:42 +08:00
bd01434de0
expression: remove the usage of "TypeClass" in "builtin_arithmetic.go" ( #4575 )
2017-09-22 13:52:10 +08:00
a8b09d2761
expression: reorganize error messages for non-existent functions ( #4582 )
2017-09-21 12:14:50 +08:00
c899e5bb16
expression: rewrite builtin function: MOD ( #4407 )
2017-09-21 09:48:51 +08:00
92bea5afa4
expression: rewrite builtin function: INTDIV ( #4213 )
2017-09-05 20:03:02 +08:00