提交 c7dc65b7 编写于 作者: G Ganlin Zhao

[TD-11983]<fix>(query): elapsed function second param time_unit should not contain now keyword

上级 e7ec5180
......@@ -2852,7 +2852,7 @@ int32_t addExprAndResultField(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, int32_t col
char val[8] = {0};
int64_t tickPerSec = 0;
if (pParamElem[1].pNode->exprToken.type == TK_NOW) {
if (pParamElem[1].pNode->exprToken.type == TK_NOW || strstr(pParamElem[1].pNode->exprToken.z, "now")) {
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg2);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册