aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCSVParser.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-24 12:47:23 +0000
committerrowanbeentje <rowan@beent.je>2012-03-24 12:47:23 +0000
commit21df6e7616419aa87513d61d1721394a7da9e16a (patch)
treedd8494d81026dabf9f976e27def63398dce18653 /Source/SPCSVParser.m
parent760c9b1c387ab827839b77db259537b97a1a8522 (diff)
downloadsequelpro-21df6e7616419aa87513d61d1721394a7da9e16a.tar.gz
sequelpro-21df6e7616419aa87513d61d1721394a7da9e16a.tar.bz2
sequelpro-21df6e7616419aa87513d61d1721394a7da9e16a.zip
- 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
Diffstat (limited to 'Source/SPCSVParser.m')
-rw-r--r--Source/SPCSVParser.m2
1 files changed, 1 insertions, 1 deletions
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]