提交 99c92420 编写于 作者: A Alex Duan

fix(query): check empty string

上级 ba2e824b
...@@ -334,8 +334,12 @@ bool appendTagsFilter(SSqlObj* pSql) { ...@@ -334,8 +334,12 @@ bool appendTagsFilter(SSqlObj* pSql) {
return false; return false;
} }
// check tags is blank // check tags is blank or ''
char* p1 = pTscObj->tags; char* p1 = pTscObj->tags;
if (strcmp(p1, "\'\'") == 0) {
tscDebug("TAGS 0x%" PRIx64 " tags is empty. user=%s", pSql->self, pTscObj->user);
return false;
}
bool blank = true; bool blank = true;
while(*p1 != 0) { while(*p1 != 0) {
if(*p1 != ' ') { if(*p1 != ' ') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册