aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2014-01-14 13:54:36 +0000
committerStuart Connolly <stuart02@gmail.com>2014-01-14 13:54:36 +0000
commitee95d6e37dc09d72f8f88b39862fecfdf4f2941c (patch)
tree8b7fee704e9607d0b38cdea4194913643147122b
parentfe7b436534b6ab9f503b62822b8e720ccf231860 (diff)
downloadsequelpro-ee95d6e37dc09d72f8f88b39862fecfdf4f2941c.tar.gz
sequelpro-ee95d6e37dc09d72f8f88b39862fecfdf4f2941c.tar.bz2
sequelpro-ee95d6e37dc09d72f8f88b39862fecfdf4f2941c.zip
Tidy up.
-rw-r--r--Source/SPSQLExporter.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m
index faf76e67..f91fad5e 100644
--- a/Source/SPSQLExporter.m
+++ b/Source/SPSQLExporter.m
@@ -333,7 +333,6 @@
else {
[queryColumnDetails addObject:[[theColumnDetail objectForKey:@"name"] mySQLBacktickQuotedString]];
}
-
}
// Retrieve the number of rows in the table for progress bar drawing
@@ -586,8 +585,7 @@
[errors appendFormat:@"%@\n", [connection lastErrorMessage]];
if ([self sqlOutputIncludeErrors]) {
- [[self exportOutputFile] writeData:[[NSString stringWithFormat:@"# Error: %@\n", [connection lastErrorMessage]]
- dataUsingEncoding:NSUTF8StringEncoding]];
+ [[self exportOutputFile] writeData:[[NSString stringWithFormat:@"# Error: %@\n", [connection lastErrorMessage]] dataUsingEncoding:NSUTF8StringEncoding]];
}
}
}
@@ -608,6 +606,7 @@
}
[metaString setString:@"\n\n"];
+
// Add the name of table
[metaString appendFormat:@"# Replace placeholder table for %@ with correct view syntax\n# ------------------------------------------------------------\n\n", tableName];
[metaString appendFormat:@"DROP TABLE %@;\n\n", [tableName backtickQuotedString]];
@@ -770,7 +769,6 @@
[[self exportOutputFile] writeData:[[NSString stringWithFormat:@"# Error: %@\n", [connection lastErrorMessage]] dataUsingEncoding:NSUTF8StringEncoding]];
}
}
-
}
// Restore unique checks, foreign key checks, and other settings saved at the start