From 21df6e7616419aa87513d61d1721394a7da9e16a Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 24 Mar 2012 12:47:23 +0000 Subject: - Fix an exception when attempting to preserve the selection in a table with a primary key with multiple columns of which the first of which is a blob or binary type - Clean up NSNull comparisons and add comments - Clear the selection when filtering a table, allowing reselection to look a little more consistent --- Source/SPCSVParser.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/SPCSVParser.m') diff --git a/Source/SPCSVParser.m b/Source/SPCSVParser.m index 431c89a8..be71b13e 100644 --- a/Source/SPCSVParser.m +++ b/Source/SPCSVParser.m @@ -281,7 +281,7 @@ // Update the total parsed length (differs from parserPosition following trims) totalLengthParsed += parserPosition - startingParserPosition; - // Skip empty rows + // Skip empty rows. Note the NSNull pointer comparison; as [NSNull null] is a singleton this works correctly. if ([csvRowArray count] == 0 || ([csvRowArray count] == 1 && ([csvRowArray objectAtIndex:0] == [NSNull null] -- cgit v1.2.3