This commit is contained in:
Haojun Liao 2020-11-19 10:56:15 +08:00
parent a41312d524
commit 1faef8863d
1 changed files with 2 additions and 2 deletions

View File

@ -2463,7 +2463,7 @@ TAOS_ROW doSetResultRowData(SSqlObj *pSql) {
for (int i = 0; i < size; ++i) { for (int i = 0; i < size; ++i) {
SInternalField* pInfo = (SInternalField*)TARRAY_GET_ELEM(pQueryInfo->fieldsInfo.internalField, 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; int32_t bytes = pInfo->field.bytes;
if (type != TSDB_DATA_TYPE_BINARY && type != TSDB_DATA_TYPE_NCHAR) { 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->length[i] = varDataLen(pRes->urow[i]);
} }
pRes->urow[i] += bytes; ((char**) pRes->urow)[i] += bytes;
} }
pRes->row++; // index increase one-step pRes->row++; // index increase one-step