Fix the issue #149, SParsedDataColInfo not initialized

This commit is contained in:
slguan 2019-07-22 15:27:04 +08:00
parent 52e2364de8
commit af59bee0d2
1 changed files with 4 additions and 3 deletions

View File

@ -886,9 +886,10 @@ int tsParseInsertStatement(SSqlCmd* pCmd, char* str, char* acct, char* db, SSqlO
goto _error_clean;
}
SParsedDataColInfo spd = {
pMeterMeta->numOfColumns, 0, {{0}}, {0},
};
SParsedDataColInfo spd = {0};
spd.ordered = true;
spd.prevTimestamp = INT64_MIN;
spd.numOfCols = pMeterMeta->numOfColumns;
int16_t offset[TSDB_MAX_COLUMNS] = {0};
for (int32_t t = 1; t < pMeterMeta->numOfColumns; ++t) {