提交 700880ea 编写于 作者: G Ganlin Zhao

[TD-12861]<fix>(query): taoshell crash : coredump for such as "select first(c1)==max(c1) from st"

上级 555e0bd4
...@@ -4660,7 +4660,7 @@ static int32_t validateSQLExprItemArithmeticExpr(SSqlCmd* pCmd, tSqlExpr* pExpr, ...@@ -4660,7 +4660,7 @@ static int32_t validateSQLExprItemArithmeticExpr(SSqlCmd* pCmd, tSqlExpr* pExpr,
const char* msg1 = "arithmetic expression composed with columns from different tables"; const char* msg1 = "arithmetic expression composed with columns from different tables";
const char* msg2 = "arithmetic expression composed with functions/columns of different types"; const char* msg2 = "arithmetic expression composed with functions/columns of different types";
const char* msg3 = "comparison/logical expression involving string operands is not supported"; const char* msg3 = "comparison/logical expression involving string operands is not supported";
const char* msg4 = "comparison/logical expression involving fucntion result is not supported"; const char* msg4 = "comparison/logical expression involving function result is not supported";
int32_t leftHeight = 0; int32_t leftHeight = 0;
int32_t ret = validateSQLExprItem(pCmd, pExpr->pLeft, pQueryInfo, pList, &leftType, &uidLeft, &leftHeight); int32_t ret = validateSQLExprItem(pCmd, pExpr->pLeft, pQueryInfo, pList, &leftType, &uidLeft, &leftHeight);
......
...@@ -632,7 +632,7 @@ tSqlExpr *tSqlExprClone(tSqlExpr *pSrc) { ...@@ -632,7 +632,7 @@ tSqlExpr *tSqlExprClone(tSqlExpr *pSrc) {
tVariantAssign(&pExpr->value, &pSrc->value); tVariantAssign(&pExpr->value, &pSrc->value);
//we don't clone paramList now because clone is only used for between/and //we don't clone paramList now because clone is only used for between/and
pSrc->Expr.paramList = NULL; pExpr->Expr.paramList = NULL;
return pExpr; return pExpr;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册