Merge pull request #7226 from taosdata/hotfix/TD-5868

[TD-5868]block string column name
This commit is contained in:
dapan1121 2021-08-11 16:11:57 +08:00 committed by GitHub
commit e233ab6265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -4258,6 +4258,10 @@ static bool isValidExpr(tSqlExpr* pLeft, tSqlExpr* pRight, int32_t optr) {
return false;
}
if (pLeft->tokenId >= TK_BOOL && pLeft->tokenId <= TK_BINARY && (optr == TK_NOTNULL || optr == TK_ISNULL)) {
return false;
}
return true;
}