未验证 提交 546afbb5 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #10593 from taosdata/fix/TS-1286

[TS-1286]<fix>: validate empry ep in show vnodes command
......@@ -3623,6 +3623,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.
先完成此消息的编辑!
想要评论请 注册