未验证 提交 b3976121 编写于 作者: H Haojun Liao 提交者: GitHub

Merge pull request #10594 from taosdata/fix/TS-1286-d

[TS-1286]<fix>: validate empry ep in show vnodes command
......@@ -3947,6 +3947,10 @@ int32_t setShowInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
if (pShowInfo->prefix.type == TK_STRING) {
pShowInfo->prefix.n = stringProcess(pShowInfo->prefix.z, pShowInfo->prefix.n);
}
if (pShowInfo->prefix.n <= 0) {
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg6);
}
}
return TSDB_CODE_SUCCESS;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册