We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56fa073 commit 2bbf896Copy full SHA for 2bbf896
sqle/driver/mysql/rule/ai/rule_00112.go
@@ -143,6 +143,9 @@ func init() {
143
144
// getValueFromExpr 从ValueExpr中提取实际的数值
145
func getValueFromExpr(expr *parserdriver.ValueExpr) (int64, bool) {
146
+ if expr == nil {
147
+ return 0, false
148
+ }
149
switch expr.Datum.Kind() {
150
case tidbTypes.KindInt64:
151
return expr.GetInt64(), true
0 commit comments