aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPXMLExporter.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/SPXMLExporter.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/SPXMLExporter.m')
-rw-r--r--Source/SPXMLExporter.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPXMLExporter.m b/Source/SPXMLExporter.m
index 8ff99e0d..8393b937 100644
--- a/Source/SPXMLExporter.m
+++ b/Source/SPXMLExporter.m
@@ -258,7 +258,9 @@
[xmlItem setString:[NSString stringWithString:dataConversionString]];
[dataConversionString release];
- }
+ }
+
+ // Check for null value using a pointer comparison; as [NSNull null] is a singleton this works correctly.
else if (data == [NSNull null]) {
dataIsNULL = YES;