diff --git a/source/libs/command/src/command.c b/source/libs/command/src/command.c index 43091b38ad..136e1d4ae1 100644 --- a/source/libs/command/src/command.c +++ b/source/libs/command/src/command.c @@ -14,14 +14,11 @@ */ #include "command.h" -#include #include "catalog.h" #include "commandInt.h" #include "scheduler.h" #include "systable.h" #include "taosdef.h" -#include "taoserror.h" -#include "tarray.h" #include "tdatablock.h" #include "tglobal.h" #include "tgrant.h" @@ -739,7 +736,7 @@ static int32_t setCreateViewResultIntoDataBlock(SSDataBlock* pBlock, SShowCreate _exit: taosMemoryFree(buf2); - return TSDB_CODE_SUCCESS; + return terrno; } static int32_t execShowCreateTable(SShowCreateTableStmt* pStmt, SRetrieveTableRsp** pRsp) { diff --git a/source/libs/qcom/src/querymsg.c b/source/libs/qcom/src/querymsg.c index fdb5f2d9c1..c803eb2cf8 100644 --- a/source/libs/qcom/src/querymsg.c +++ b/source/libs/qcom/src/querymsg.c @@ -16,7 +16,6 @@ #include "query.h" #include "queryInt.h" #include "systable.h" -#include "taoserror.h" #include "tmsg.h" #include "trpc.h"