提交 e34a577b 编写于 作者: wmmhello's avatar wmmhello

TD-6129<feature> add tag?'key' in where logic

上级 1e135779
......@@ -4465,11 +4465,14 @@ static int32_t validateMatchExpr(tSqlExpr* pExpr, STableMeta* pTableMeta, int32_
SSchema* pSchema = tscGetTableSchema(pTableMeta);
if ((pLeft->tokenId != TK_ARROW) && (!isTablenameToken(&pLeft->columnName))
&& (pSchema[index].type != TSDB_DATA_TYPE_BINARY)
&& (pSchema[index].type == TSDB_DATA_TYPE_JSON && !JSON_TYPE_BINARY)) {
&& (pSchema[index].type != TSDB_DATA_TYPE_BINARY)) {
return invalidOperationMsg(msgBuf, msg2);
}
if(pLeft->tokenId == TK_ARROW && pSchema[index].type == TSDB_DATA_TYPE_JSON && !JSON_TYPE_BINARY){
return invalidOperationMsg(msgBuf, msg2);
}
if (!(pRight->type == SQL_NODE_VALUE && pRight->value.nType == TSDB_DATA_TYPE_BINARY)) {
return invalidOperationMsg(msgBuf, msg3);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册