fix bug #614
This commit is contained in:
parent
b2bbcd809d
commit
24565c3490
|
@ -1192,6 +1192,10 @@ static int tscInsertDataFromFile(SSqlObj *pSql, FILE *fp) {
|
|||
char *lineptr = line;
|
||||
strtolower(line, line);
|
||||
|
||||
if (numOfRows >= maxRows || pTableDataBlock->size + pMeterMeta->rowSize >= pTableDataBlock->nAllocSize) {
|
||||
maxRows += tscAllocateMemIfNeed(pTableDataBlock, pMeterMeta->rowSize);
|
||||
}
|
||||
|
||||
len = tsParseOneRowData(&lineptr, pTableDataBlock, pSchema, &spd, pCmd->payload, pMeterMeta->precision);
|
||||
if (len <= 0) return -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue