From 778c3556b551077d488af6378108db0630775953 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 15 Oct 2009 13:36:41 +0000 Subject: - Fix a problem preventing the end of large CSV files from being imported --- Source/TableDump.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/TableDump.m b/Source/TableDump.m index 9b75c757..d5e6d563 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -878,7 +878,7 @@ // Extract and process any full CSV rows found so far. Also trigger processing if all // rows have been read, in order to ensure short files are still processed. - while ((csvRowArray = [csvParser getRowAsArrayAndTrimString:YES stringIsComplete:allDataRead]) || (allDataRead && !fieldMappingArray)) { + while ((csvRowArray = [csvParser getRowAsArrayAndTrimString:YES stringIsComplete:allDataRead]) || (allDataRead && [parsedRows count])) { // If valid, add the row array and length to local storage if (csvRowArray) { -- cgit v1.2.3