提交 4467ade7 编写于 作者: G Ganlin Zhao

"[TD-11220]<feature>(query): time related functions"

上级 89bd2f47
......@@ -1540,7 +1540,7 @@ int32_t exprValidateTimeNode(char *msgbuf, tExprNode *pExpr) {
//time unit
if (pExpr->_func.numChildren == 3) {
if (child[2]->nodeType != TSQL_NODE_VALUE &&
if (child[2]->nodeType != TSQL_NODE_VALUE ||
child[2]->pVal->nType != TSDB_DATA_TYPE_TIMESTAMP) {
return TSDB_CODE_TSC_INVALID_OPERATION;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册