diff --git a/include/libs/qcom/query.h b/include/libs/qcom/query.h index fbfa19e5a5..254d572149 100644 --- a/include/libs/qcom/query.h +++ b/include/libs/qcom/query.h @@ -81,6 +81,8 @@ typedef struct STableMetaOutput { STableMeta *tbMeta; } STableMetaOutput; +bool tIsValidSchema(struct SSchema* pSchema, int32_t numOfCols, int32_t numOfTags); + extern int32_t (*queryBuildMsg[TSDB_MSG_TYPE_MAX])(void* input, char **msg, int32_t msgSize, int32_t *msgLen); extern int32_t (*queryProcessMsgRsp[TSDB_MSG_TYPE_MAX])(void* output, char *msg, int32_t msgSize); diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index d0c6d99c27..b6200de824 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -430,7 +430,7 @@ void setResultDataPtr(SClientResultInfo* pResultInfo, TAOS_FIELD* pFields, int32 int32_t offset = 0; for (int32_t i = 0; i < numOfCols; ++i) { pResultInfo->length[i] = pResultInfo->fields[i].bytes; - pResultInfo->row[i] = pResultInfo->pData + offset * pResultInfo->numOfRows; + pResultInfo->row[i] = (char*) (pResultInfo->pData + offset * pResultInfo->numOfRows); pResultInfo->pCol[i] = pResultInfo->row[i]; offset += pResultInfo->fields[i].bytes; } diff --git a/source/common/inc/commonInt.h b/source/common/inc/commonInt.h deleted file mode 100644 index 5b71f83faf..0000000000 --- a/source/common/inc/commonInt.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2019 TAOS Data, Inc. - * - * This program is free software: you can use, redistribute, and/or modify - * it under the terms of the GNU Affero General Public License, version 3 - * or later ("AGPL"), as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -#ifndef _TD_COMMON_INT_H_ -#define _TD_COMMON_INT_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -extern bool tIsValidSchema(struct SSchema* pSchema, int32_t numOfCols, int32_t numOfTags); - - - -#ifdef __cplusplus -} -#endif - -#endif /*_TD_COMMON_INT_H_*/