IS NULL should check on value attribute
This commit is contained in:
1 parent
c66739c420
commit
27fb235d20
1 file changed
+12
-1
@@ -51,7 +51,18 @@ export function processDeviceFilter(filter): Expression {
|
|||||||
else if (exp[0] === "<>" && exp[2] !== true)
|
else if (exp[0] === "<>" && exp[2] !== true)
|
||||||
return ["=", ["PARAM", "_tags"], t];
|
return ["=", ["PARAM", "_tags"], t];
|
||||||
} else if (
|
} else if (
|
||||||
["=", "<>", ">", ">=", "<", "<=", "LIKE", "NOT LIKE"].includes(exp[0])
|
[
|
||||||
|
"=",
|
||||||
|
"<>",
|
||||||
|
">",
|
||||||
|
">=",
|
||||||
|
"<",
|
||||||
|
"<=",
|
||||||
|
"LIKE",
|
||||||
|
"NOT LIKE",
|
||||||
|
"IS NULL",
|
||||||
|
"IS NOT NULL"
|
||||||
|
].includes(exp[0])
|
||||||
) {
|
) {
|
||||||
let e = map(exp, ee => {
|
let e = map(exp, ee => {
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in new issue
Block a user