aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExportController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-01-14 13:52:16 +0000
committerstuconnolly <stuart02@gmail.com>2012-01-14 13:52:16 +0000
commit55de01f18ced503be7f6c0fe2b997e347f2b6e78 (patch)
treecaf2a7664bec0f16ed26f514d2d0cb30b2df29fc /Source/SPExportController.m
parent24837e4f269c7ad44c555066d7f5d3d9c4d2c139 (diff)
downloadsequelpro-55de01f18ced503be7f6c0fe2b997e347f2b6e78.tar.gz
sequelpro-55de01f18ced503be7f6c0fe2b997e347f2b6e78.tar.bz2
sequelpro-55de01f18ced503be7f6c0fe2b997e347f2b6e78.zip
When exporting a query result as CSV ensure that we're allowing the exporter decide how to deal with NULLs rather than passing them already converted to the user's placeholder prefernce which results in them being quoted. Fixes issue #1281. Also, general tidy up.
Diffstat (limited to 'Source/SPExportController.m')
-rw-r--r--Source/SPExportController.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index c7a60f39..5b61d178 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -796,6 +796,7 @@ static const NSString *SPSQLExportDropEnabled = @"SQLExportDropEnabled";
if (isDot && serverLowerCaseTableNameValue == NSNotFound) {
MCPResult *caseResult = [connection queryString:@"SHOW VARIABLES LIKE 'lower_case_table_names'"];
+
[caseResult setReturnDataAsStrings:YES];
if ([caseResult numOfRows] == 1) {