Fix the issue #149, SParsedDataColInfo not initialized
This commit is contained in:
parent
52e2364de8
commit
af59bee0d2
|
@ -886,9 +886,10 @@ int tsParseInsertStatement(SSqlCmd* pCmd, char* str, char* acct, char* db, SSqlO
|
||||||
goto _error_clean;
|
goto _error_clean;
|
||||||
}
|
}
|
||||||
|
|
||||||
SParsedDataColInfo spd = {
|
SParsedDataColInfo spd = {0};
|
||||||
pMeterMeta->numOfColumns, 0, {{0}}, {0},
|
spd.ordered = true;
|
||||||
};
|
spd.prevTimestamp = INT64_MIN;
|
||||||
|
spd.numOfCols = pMeterMeta->numOfColumns;
|
||||||
|
|
||||||
int16_t offset[TSDB_MAX_COLUMNS] = {0};
|
int16_t offset[TSDB_MAX_COLUMNS] = {0};
|
||||||
for (int32_t t = 1; t < pMeterMeta->numOfColumns; ++t) {
|
for (int32_t t = 1; t < pMeterMeta->numOfColumns; ++t) {
|
||||||
|
|
Loading…
Reference in New Issue