From 63a256a444d57f0b6b6db1eafce932ce320508cb Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Thu, 7 May 2020 10:21:53 +0800 Subject: [PATCH] [td-225] fix creating existed db tsdb does not response with error message --- src/query/src/qparserImpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qparserImpl.c b/src/query/src/qparserImpl.c index d8e48de918..90ae62a361 100644 --- a/src/query/src/qparserImpl.c +++ b/src/query/src/qparserImpl.c @@ -818,7 +818,7 @@ void setCreateDBSQL(SSqlInfo *pInfo, int32_t type, SSQLToken *pToken, SCreateDBI pInfo->pDCLInfo->dbOpt = *pDB; pInfo->pDCLInfo->dbOpt.dbname = *pToken; - pInfo->pDCLInfo->dbOpt.ignoreExists = (pIgExists != NULL); + pInfo->pDCLInfo->dbOpt.ignoreExists = (pIgExists->z != NULL); } void setCreateAcctSQL(SSqlInfo *pInfo, int32_t type, SSQLToken *pName, SSQLToken *pPwd, SCreateAcctSQL *pAcctInfo) { -- GitLab