diff options
author | Stuart Connolly <stuart02@gmail.com> | 2014-01-13 17:12:28 +0000 |
---|---|---|
committer | Stuart Connolly <stuart02@gmail.com> | 2014-01-13 17:12:28 +0000 |
commit | 68b3ae75c829705ba55fcec4ab4512261ad4fe54 (patch) | |
tree | 71abd80abb3f720d76d63dd470529238fd2262c6 /Source/SPCopyTable.m | |
parent | 5fbb1aca370ee09c9cdda7f96cc771cb3e1c249d (diff) | |
download | sequelpro-68b3ae75c829705ba55fcec4ab4512261ad4fe54.tar.gz sequelpro-68b3ae75c829705ba55fcec4ab4512261ad4fe54.tar.bz2 sequelpro-68b3ae75c829705ba55fcec4ab4512261ad4fe54.zip |
Tidy up.
Diffstat (limited to 'Source/SPCopyTable.m')
-rw-r--r-- | Source/SPCopyTable.m | 2 |
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) |