aboutsummaryrefslogtreecommitdiffstats
path: root/Source
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
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')
-rw-r--r--Source/SPExportController.h3
-rw-r--r--Source/SPSQLExporter.m4
2 files changed, 3 insertions, 4 deletions
diff --git a/Source/SPExportController.h b/Source/SPExportController.h
index df9fac0a..3ccdfd74 100644
--- a/Source/SPExportController.h
+++ b/Source/SPExportController.h
@@ -27,7 +27,6 @@
#import "SPConstants.h"
-@protocol NSTabViewDelegate;
@class MCPConnection, BWAnchoredButtonBar;
/**
@@ -37,7 +36,7 @@
*
* Export controller.
*/
-@interface SPExportController : NSWindowController <NSTabViewDelegate>
+@interface SPExportController : NSWindowController
{
// Controllers
IBOutlet id tableDocumentInstance;
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];