From a6b8cd46677d517b2aad5e8bf7543a8d307b211e Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 23 Jul 2011 21:06:07 +0000 Subject: Fix CSV exporter not using the user supplied NULL string. --- Source/SPCSVExporter.m | 6 ++++-- 1 file 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. -- cgit v1.2.3