File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ - (void)exportOperation
232
232
}
233
233
234
234
// Retrieve the next row from the supplied data, either directly from the array...
235
+ BOOL forceNonNumericRow = NO ;
235
236
if ([self csvDataArray ]) {
236
237
csvRow = NSArrayObjectAtIndex([self csvDataArray ], currentRowIndex);
237
238
}
@@ -241,6 +242,7 @@ - (void)exportOperation
241
242
if ([self csvOutputFieldNames ]) {
242
243
csvRow = [streamingResult fieldNames ];
243
244
[self setCsvOutputFieldNames: NO ];
245
+ forceNonNumericRow = YES ;
244
246
}
245
247
else {
246
248
csvRow = [streamingResult getRowAsArray ];
@@ -298,8 +300,12 @@ - (void)exportOperation
298
300
[csvString appendString: [self csvEnclosingCharacterString ]];
299
301
}
300
302
else {
303
+ // is this the header row?
304
+ if (forceNonNumericRow) {
305
+ csvCellIsNumeric = NO ;
306
+ }
301
307
// If an array of bools supplying information as to whether the column is numeric has been supplied, use it.
302
- if ([tableColumnNumericStatus count ] > 0 ) {
308
+ else if ([tableColumnNumericStatus count ] > 0 ) {
303
309
csvCellIsNumeric = [NSArrayObjectAtIndex(tableColumnNumericStatus, i) boolValue ];
304
310
}
305
311
// Otherwise, first test whether this cell contains data
You can’t perform that action at this time.
0 commit comments