aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPCopyTable.m2
1 files changed, 2 insertions, 0 deletions
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)