aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPCSVExporter.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPCSVExporter.m b/Source/SPCSVExporter.m
index 651f0ffd..17f6fb40 100644
--- a/Source/SPCSVExporter.m
+++ b/Source/SPCSVExporter.m
@@ -31,6 +31,8 @@
#import "SPExportUtilities.h"
#import "SPExportFile.h"
+static NSString *SPDatabaseNULLString = @"NULL";
+
@implementation SPCSVExporter
@synthesize delegate;
@@ -292,8 +294,8 @@
[csvCellString setString:[csvCell description]];
}
- // For NULL values supplied via an array add the unenclosed null string as set in preferences
- if ([csvCellString isEqualToString:[self csvNULLString]]) {
+ // Handle NULL values according to what the user specified
+ if ([csvCellString isEqualToString:SPDatabaseNULLString]) {
[csvString appendString:[self csvNULLString]];
}
// Add empty strings as a pair of enclosing characters.