From 66de2bb747ac8d60a0be13d570a2d763857964ff Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 13 Jun 2010 15:12:46 +0000 Subject: - Fix SQLexporter known issue from r2311, and fix compilation against the 10.5 SDK --- Source/SPExportController.h | 3 +-- Source/SPSQLExporter.m | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'Source') 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 +@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]; -- cgit v1.2.3