aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLExporter.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-06-13 15:12:46 +0000
committerrowanbeentje <rowan@beent.je>2010-06-13 15:12:46 +0000
commit66de2bb747ac8d60a0be13d570a2d763857964ff (patch)
tree9b25a6383324fc12b989b25f5e945901028c792b /Source/SPSQLExporter.m
parentf8b48ef4cdd9a63ddb1e027c384d62115c5ba598 (diff)
downloadsequelpro-66de2bb747ac8d60a0be13d570a2d763857964ff.tar.gz
sequelpro-66de2bb747ac8d60a0be13d570a2d763857964ff.tar.bz2
sequelpro-66de2bb747ac8d60a0be13d570a2d763857964ff.zip
- Fix SQLexporter known issue from r2311, and fix compilation against the 10.5 SDK
Diffstat (limited to 'Source/SPSQLExporter.m')
-rw-r--r--Source/SPSQLExporter.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m
index dd43a600..07b6a0e0 100644
--- a/Source/SPSQLExporter.m
+++ b/Source/SPSQLExporter.m
@@ -319,7 +319,7 @@
[[self exportOutputFileHandle] writeData:[[NSString stringWithFormat:@"INSERT INTO %@ (%@)\nVALUES\n\t(", [tableName backtickQuotedString], [fieldNames componentsJoinedAndBacktickQuoted]] dataUsingEncoding:NSUTF8StringEncoding]];
// Iterate through the rows to construct a VALUES group for each
- j, k = 0;
+ j = 0, k = 0;
sqlExportPool = [[NSAutoreleasePool alloc] init];
@@ -429,7 +429,7 @@
{
[sqlString appendString:[NSString stringWithFormat:@");\n\nINSERT INTO %@ (%@)\nVALUES\n\t(", [tableName backtickQuotedString], [fieldNames componentsJoinedAndBacktickQuoted]]];
- queryLength, k = 0;
+ queryLength = 0, k = 0;
// Use the opportunity to drain and reset the autorelease pool
[sqlExportPool release];