fix tag/json tag error
This commit is contained in:
parent
14cfbd7e45
commit
6e6721c6d4
|
@ -529,11 +529,9 @@ static int32_t sifExecOper(SOperatorNode *node, SIFCtx *ctx, SIFParam *output) {
|
||||||
SIFParam *params = NULL;
|
SIFParam *params = NULL;
|
||||||
SIF_ERR_RET(sifInitOperParams(¶ms, node, ctx));
|
SIF_ERR_RET(sifInitOperParams(¶ms, node, ctx));
|
||||||
|
|
||||||
if (node->opType != OP_TYPE_JSON_CONTAINS) {
|
if (params[0].status == SFLT_NOT_INDEX && (nParam > 1 && params[1].status == SFLT_NOT_INDEX)) {
|
||||||
if (params[0].status == SFLT_NOT_INDEX || (nParam > 1 && params[1].status == SFLT_NOT_INDEX)) {
|
output->status = SFLT_NOT_INDEX;
|
||||||
output->status = SFLT_NOT_INDEX;
|
return code;
|
||||||
return code;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ugly code, refactor later
|
// ugly code, refactor later
|
||||||
|
@ -545,11 +543,9 @@ static int32_t sifExecOper(SOperatorNode *node, SIFCtx *ctx, SIFParam *output) {
|
||||||
SIF_ERR_RET(operFn(¶ms[0], nParam > 1 ? ¶ms[1] : NULL, output));
|
SIF_ERR_RET(operFn(¶ms[0], nParam > 1 ? ¶ms[1] : NULL, output));
|
||||||
} else {
|
} else {
|
||||||
// ugly code, refactor later
|
// ugly code, refactor later
|
||||||
if (node->opType != OP_TYPE_JSON_CONTAINS) {
|
if (nParam > 1 && params[1].status == SFLT_NOT_INDEX) {
|
||||||
if (nParam > 1 && params[1].status == SFLT_NOT_INDEX) {
|
output->status = SFLT_NOT_INDEX;
|
||||||
output->status = SFLT_NOT_INDEX;
|
return code;
|
||||||
return code;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
SIF_ERR_RET(sifGetOperFn(node->opType, &operFn, &output->status));
|
SIF_ERR_RET(sifGetOperFn(node->opType, &operFn, &output->status));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue