Fix cursor tests

This commit is contained in:
Vivek Patel
2022-11-08 17:17:36 +05:30
parent 6297304033
commit 74876a709b
+2 -2
View File
@@ -299,7 +299,7 @@ func CursorExpression(
// both NULL
exp.NewExpressionList(
exp.AndType,
exp.NewLiteralExpression(`? IS ?`, ident, notOp[!lt]),
exp.NewLiteralExpression(`(? IS ?)`, ident, notOp[!lt]),
isValueNull(i, lt),
),
// or GT/LT value
@@ -319,7 +319,7 @@ func CursorExpression(
// both NULL
exp.NewExpressionList(
exp.AndType,
exp.NewLiteralExpression(`? IS NULL`, ident),
exp.NewLiteralExpression(`(? IS NULL)`, ident),
isValueNull(i, false),
),
exp.NewBooleanExpression(exp.EqOp, ident, value),