diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index d5f69fd45a67fbd3032fbbf49e5f1cc5fbb93d65..c2594ddbd879d3f6a6813c6d5f361228cf2cdaa9 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -2463,7 +2463,7 @@ TAOS_ROW doSetResultRowData(SSqlObj *pSql) { for (int i = 0; i < size; ++i) { SInternalField* pInfo = (SInternalField*)TARRAY_GET_ELEM(pQueryInfo->fieldsInfo.internalField, i); - int32_t type = pInfo->field.type; + int32_t type = pInfo->field.type; int32_t bytes = pInfo->field.bytes; if (type != TSDB_DATA_TYPE_BINARY && type != TSDB_DATA_TYPE_NCHAR) { @@ -2473,7 +2473,7 @@ TAOS_ROW doSetResultRowData(SSqlObj *pSql) { pRes->length[i] = varDataLen(pRes->urow[i]); } - pRes->urow[i] += bytes; + ((char**) pRes->urow)[i] += bytes; } pRes->row++; // index increase one-step