From b74766ab31383ef35ab9a49d79722681c76554b2 Mon Sep 17 00:00:00 2001 From: lihui Date: Wed, 27 Nov 2019 19:35:11 +0800 Subject: [PATCH] [TBASE-898] --- src/client/src/tscSQLParser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index d963c8905d..ba465c28b9 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -2546,6 +2546,10 @@ int32_t setShowInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) { } } }else if (type == SHOW_VNODES) { + if (NULL == pInfo->pDCLInfo) { + return invalidSqlErrMsg(pCmd, "No specified ip of dnode"); + } + // show vnodes may be ip addr of dnode in payload if (pInfo->pDCLInfo->nTokens > 0) { SSQLToken* pDnodeIp = &pInfo->pDCLInfo->a[0]; -- GitLab