diff options
author | stuconnolly <stuart02@gmail.com> | 2011-07-23 21:06:07 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-07-23 21:06:07 +0000 |
commit | a6b8cd46677d517b2aad5e8bf7543a8d307b211e (patch) | |
tree | 7593b3028eb29393dc0261ca65a0bc4fe9caaa78 /Source/SPCSVExporter.m | |
parent | fa5a9c1ab00bdd35952a2934016e243c633131b0 (diff) | |
download | sequelpro-a6b8cd46677d517b2aad5e8bf7543a8d307b211e.tar.gz sequelpro-a6b8cd46677d517b2aad5e8bf7543a8d307b211e.tar.bz2 sequelpro-a6b8cd46677d517b2aad5e8bf7543a8d307b211e.zip |
Fix CSV exporter not using the user supplied NULL string.
Diffstat (limited to 'Source/SPCSVExporter.m')
-rw-r--r-- | Source/SPCSVExporter.m | 6 |
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. |