fix: invalid read/write

This commit is contained in:
yihaoDeng 2022-06-11 23:15:43 +08:00
parent 14a85095db
commit 3c9ee325bc
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ static int32_t sifInitParam(SNode *node, SIFParam *param, SIFCtx *ctx) {
switch (nodeType(node)) {
case QUERY_NODE_VALUE: {
SValueNode *vn = (SValueNode *)node;
if (vn->typeData == TSDB_DATA_TYPE_NULL) {
if (vn->typeData == TSDB_DATA_TYPE_NULL && (vn->literal == NULL || strlen(vn->literal) == 0)) {
param->status = SFLT_NOT_INDEX;
return 0;
}