From 68b3ae75c829705ba55fcec4ab4512261ad4fe54 Mon Sep 17 00:00:00 2001 From: Stuart Connolly Date: Mon, 13 Jan 2014 17:12:28 +0000 Subject: Tidy up. --- Source/SPCopyTable.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source') diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m index 0fa58711..7dbb427e 100644 --- a/Source/SPCopyTable.m +++ b/Source/SPCopyTable.m @@ -1206,9 +1206,11 @@ static const NSInteger kBlobAsImageFile = 4; // Otherwise, check the cell value for newlines. id cellValue = [tableStorage cellDataAtRow:rowIndex column:colIndex]; + if ([cellValue isKindOfClass:[NSData class]]) { cellValue = [[[NSString alloc] initWithData:cellValue encoding:[mySQLConnection stringEncoding]] autorelease]; } + if (![cellValue isNSNull] && [columnType isEqualToString:@"string"] && [cellValue rangeOfCharacterFromSet:[NSCharacterSet newlineCharacterSet] options:NSLiteralSearch].location != NSNotFound) -- cgit v1.2.3