aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-27 23:41:01 +0000
committerrowanbeentje <rowan@beent.je>2012-03-27 23:41:01 +0000
commit5459c4a47b53e395b7a1b9e6959376eafc1a968a (patch)
treec89aead578e9b7f0bde78af62a8f820f651d0626 /Source
parent0576c2fcca6ddfa04c9a7c6a3d76f3e51cf88919 (diff)
downloadsequelpro-5459c4a47b53e395b7a1b9e6959376eafc1a968a.tar.gz
sequelpro-5459c4a47b53e395b7a1b9e6959376eafc1a968a.tar.bz2
sequelpro-5459c4a47b53e395b7a1b9e6959376eafc1a968a.zip
- Clean up SPMySQL and QueryKit inclusion and search methods, which should fix nightly builds
- Fix warnings
Diffstat (limited to 'Source')
-rw-r--r--Source/SPCSVExporter.m2
-rw-r--r--Source/SPConnectionController.h3
-rw-r--r--Source/SPConnectionController.m4
-rw-r--r--Source/SPConnectionDelegate.h6
-rw-r--r--Source/SPConnectionDelegate.m2
-rw-r--r--Source/SPCopyTable.m4
-rw-r--r--Source/SPCustomQuery.m4
-rw-r--r--Source/SPDataImport.m2
-rw-r--r--Source/SPDatabaseCopy.m2
-rw-r--r--Source/SPDatabaseData.m4
-rw-r--r--Source/SPDatabaseDocument.m4
-rw-r--r--Source/SPDatabaseInfo.m4
-rw-r--r--Source/SPDatabaseRename.m4
-rw-r--r--Source/SPDatabaseStructure.h5
-rw-r--r--Source/SPDatabaseStructure.m4
-rw-r--r--Source/SPDatabaseViewController.m4
-rw-r--r--Source/SPExportController.m2
-rw-r--r--Source/SPExportFileUtilities.m2
-rw-r--r--Source/SPExportInitializer.m2
-rw-r--r--Source/SPExtendedTableInfo.m2
-rw-r--r--Source/SPFieldEditorController.m4
-rw-r--r--Source/SPFieldMapperController.m4
-rw-r--r--Source/SPIndexesController.m4
-rw-r--r--Source/SPNavigatorController.m2
-rw-r--r--Source/SPProcessListController.m2
-rw-r--r--Source/SPSQLExporter.m2
-rw-r--r--Source/SPSSHTunnel.h5
-rw-r--r--Source/SPSSHTunnel.m4
-rw-r--r--Source/SPServerVariablesController.m2
-rw-r--r--Source/SPTableContent.m4
-rw-r--r--Source/SPTableContentDataSource.m3
-rw-r--r--Source/SPTableContentDelegate.m2
-rw-r--r--Source/SPTableCopy.m4
-rw-r--r--Source/SPTableData.m4
-rw-r--r--Source/SPTableRelations.m2
-rw-r--r--Source/SPTableStructure.m4
-rw-r--r--Source/SPTableStructureDelegate.m4
-rw-r--r--Source/SPTableTriggers.m2
-rw-r--r--Source/SPTablesList.m4
-rw-r--r--Source/SPTextView.m4
-rw-r--r--Source/SPXMLExporter.m2
-rw-r--r--Source/SPXMLExporterDelegate.m2
42 files changed, 28 insertions, 108 deletions
diff --git a/Source/SPCSVExporter.m b/Source/SPCSVExporter.m
index c40bc8f0..aa5268c1 100644
--- a/Source/SPCSVExporter.m
+++ b/Source/SPCSVExporter.m
@@ -28,7 +28,7 @@
#import "SPTableData.h"
#import "SPExportUtilities.h"
#import "SPExportFile.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
@implementation SPCSVExporter
diff --git a/Source/SPConnectionController.h b/Source/SPConnectionController.h
index a6b63b41..bc593685 100644
--- a/Source/SPConnectionController.h
+++ b/Source/SPConnectionController.h
@@ -24,6 +24,7 @@
// More info at <http://code.google.com/p/sequel-pro/>
#import "SPConnectionControllerDelegateProtocol.h"
+#import <SPMySQL/SPMySQLConnectionDelegate.h>
#ifndef SP_REFACTOR /* headers */
#import "SPFavoritesOutlineView.h"
@@ -50,7 +51,7 @@
@end
#endif
-@interface SPConnectionController : NSViewController
+@interface SPConnectionController : NSViewController <SPMySQLConnectionDelegate>
{
id <SPConnectionControllerDelegateProtocol, NSObject> delegate;
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 43dc8004..eea43ba9 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -25,11 +25,7 @@
#import "SPConnectionController.h"
#import "SPDatabaseDocument.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#ifndef SP_REFACTOR /* headers */
#import "SPAppController.h"
diff --git a/Source/SPConnectionDelegate.h b/Source/SPConnectionDelegate.h
index f06bbc08..923f5a97 100644
--- a/Source/SPConnectionDelegate.h
+++ b/Source/SPConnectionDelegate.h
@@ -25,11 +25,7 @@
#import "SPDatabaseDocument.h"
-#ifndef SP_REFACTOR
-#import "SPMySQLConnectionDelegate.h"
-#else
-#import <SPMySQL/SPMySQL.h>
-#endif
+#import <SPMySQL/SPMySQLConnectionDelegate.h>
@interface SPDatabaseDocument (SPConnectionDelegate) <SPMySQLConnectionDelegate>
diff --git a/Source/SPConnectionDelegate.m b/Source/SPConnectionDelegate.m
index 2936ba82..cfb4a8df 100644
--- a/Source/SPConnectionDelegate.m
+++ b/Source/SPConnectionDelegate.m
@@ -28,7 +28,7 @@
#import "SPQueryController.h"
#import "SPKeychain.h"
#import "SPAlertSheets.h"
-#import "SPMySQLConstants.h"
+#import <SPMySQL/SPMySQLConstants.h>
@implementation SPDatabaseDocument (SPConnectionDelegate)
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m
index 637c3913..7d03926a 100644
--- a/Source/SPCopyTable.m
+++ b/Source/SPCopyTable.m
@@ -36,11 +36,7 @@
#import "SPBundleEditorController.h"
#import "SPAppController.h"
#import "SPTablesList.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
NSInteger SPEditMenuCopy = 2001;
NSInteger SPEditMenuCopyWithColumns = 2002;
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index b7f105eb..fd0e78f5 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -26,11 +26,9 @@
#import "SPCustomQuery.h"
#import "SPSQLParser.h"
#ifndef SP_REFACTOR /* headers */
-#import "SPMySQL.h"
#import "SPGrowlController.h"
-#else
-#import <SPMySQL/SPMySQL.h>
#endif
+#import <SPMySQL/SPMySQL.h>
#import "SPDataCellFormatter.h"
#import "SPDatabaseDocument.h"
#import "SPTablesList.h"
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m
index 7272948b..89c5b86e 100644
--- a/Source/SPDataImport.m
+++ b/Source/SPDataImport.m
@@ -39,8 +39,8 @@
#import "SPFieldMapperController.h"
#import "SPFileHandle.h"
#import "SPEncodingPopupAccessory.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
#import <UniversalDetector/UniversalDetector.h>
#define SP_FILE_READ_ERROR_STRING NSLocalizedString(@"File read error", @"File read error title (Import Dialog)")
diff --git a/Source/SPDatabaseCopy.m b/Source/SPDatabaseCopy.m
index 61412f76..ea45c4af 100644
--- a/Source/SPDatabaseCopy.m
+++ b/Source/SPDatabaseCopy.m
@@ -25,7 +25,7 @@
#import "SPDBActionCommons.h"
#import "SPDatabaseCopy.h"
#import "SPTableCopy.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
@implementation SPDatabaseCopy
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m
index 1ff4afa6..d7fa2eb8 100644
--- a/Source/SPDatabaseData.m
+++ b/Source/SPDatabaseData.m
@@ -26,11 +26,7 @@
#import "SPDatabaseData.h"
#import "SPServerSupport.h"
#import "SPDatabaseCharacterSets.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
@interface SPDatabaseData (PrivateAPI)
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index a9365b52..ec7ada92 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -35,11 +35,7 @@ enum {
#import "SPDatabaseDocument.h"
#import "SPConnectionController.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#import "SPTablesList.h"
#import "SPTableStructure.h"
diff --git a/Source/SPDatabaseInfo.m b/Source/SPDatabaseInfo.m
index 71dd489c..ea43f403 100644
--- a/Source/SPDatabaseInfo.m
+++ b/Source/SPDatabaseInfo.m
@@ -24,11 +24,7 @@
#import "SPDBActionCommons.h"
#import "SPDatabaseInfo.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
@implementation SPDatabaseInfo
diff --git a/Source/SPDatabaseRename.m b/Source/SPDatabaseRename.m
index 23ed2593..61186678 100644
--- a/Source/SPDatabaseRename.m
+++ b/Source/SPDatabaseRename.m
@@ -26,11 +26,7 @@
#import "SPDatabaseRename.h"
#import "SPTableCopy.h"
#import "SPDatabaseInfo.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
@implementation SPDatabaseRename
diff --git a/Source/SPDatabaseStructure.h b/Source/SPDatabaseStructure.h
index 52e43ec8..32435a01 100644
--- a/Source/SPDatabaseStructure.h
+++ b/Source/SPDatabaseStructure.h
@@ -23,9 +23,12 @@
//
// More info at <http://code.google.com/p/sequel-pro/>
+
+#import <SPMySQL/SPMySQLConnectionDelegate.h>
+
@class SPMySQLConnection, SPDatabaseDocument;
-@interface SPDatabaseStructure : NSObject {
+@interface SPDatabaseStructure : NSObject <SPMySQLConnectionDelegate> {
SPDatabaseDocument *delegate;
SPMySQLConnection *mySQLConnection;
diff --git a/Source/SPDatabaseStructure.m b/Source/SPDatabaseStructure.m
index f6174ab8..79e2cc5d 100644
--- a/Source/SPDatabaseStructure.m
+++ b/Source/SPDatabaseStructure.m
@@ -28,11 +28,7 @@
#import "SPConnectionDelegate.h"
#import "SPTablesList.h"
#import "RegexKitLite.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#import <pthread.h>
@interface SPDatabaseStructure (Private_API)
diff --git a/Source/SPDatabaseViewController.m b/Source/SPDatabaseViewController.m
index 4c1c6cac..84f94b9a 100644
--- a/Source/SPDatabaseViewController.m
+++ b/Source/SPDatabaseViewController.m
@@ -32,11 +32,9 @@
#import "SPTableData.h"
#import "SPTablesList.h"
#import "SPTableTriggers.h"
-#ifdef SP_REFACTOR /* headers */
#import <SPMySQL/SPMySQL.h>
+#ifdef SP_REFACTOR /* headers */
#import "SPTableStructure.h"
-#else
-#import "SPMySQL.h"
#endif
@interface SPDatabaseDocument (SPDatabaseViewControllerPrivateAPI)
diff --git a/Source/SPExportController.m b/Source/SPExportController.m
index 95076ef2..0223386a 100644
--- a/Source/SPExportController.m
+++ b/Source/SPExportController.m
@@ -34,7 +34,7 @@
#import "SPExportFilenameUtilities.h"
#import "SPExportFileNameTokenObject.h"
#import "SPDatabaseDocument.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
// Constants
static const NSUInteger SPExportUIPadding = 20;
diff --git a/Source/SPExportFileUtilities.m b/Source/SPExportFileUtilities.m
index 986c1a23..c14fd7e0 100644
--- a/Source/SPExportFileUtilities.m
+++ b/Source/SPExportFileUtilities.m
@@ -29,7 +29,7 @@
#import "SPExportFile.h"
#import "SPDatabaseDocument.h"
#import "SPCustomQuery.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
typedef enum
{
diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m
index 7751ddc5..b02ef927 100644
--- a/Source/SPExportInitializer.m
+++ b/Source/SPExportInitializer.m
@@ -42,7 +42,7 @@
#import "SPExportFileUtilities.h"
#import "SPExportFilenameUtilities.h"
#import "SPExportFileNameTokenObject.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
@implementation SPExportController (SPExportInitializer)
diff --git a/Source/SPExtendedTableInfo.m b/Source/SPExtendedTableInfo.m
index 52c7cff6..89403615 100644
--- a/Source/SPExtendedTableInfo.m
+++ b/Source/SPExtendedTableInfo.m
@@ -33,7 +33,7 @@
#import "SPAlertSheets.h"
#import "SPTableStructure.h"
#import "SPServerSupport.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
static NSString *SPUpdateTableTypeCurrentType = @"SPUpdateTableTypeCurrentType";
static NSString *SPUpdateTableTypeNewType = @"SPUpdateTableTypeNewType";
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index d994e35b..3a4ee14c 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -35,11 +35,7 @@
#include <objc/objc-runtime.h>
#import "SPCustomQuery.h"
#import "SPTableContent.h"
-#ifndef SP_REFACTOR
-#import "SPMySQLGeometryData.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
@interface SPFieldEditorController (SPFieldEditorControllerDelegate)
diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m
index 538b50eb..374bd3dd 100644
--- a/Source/SPFieldMapperController.m
+++ b/Source/SPFieldMapperController.m
@@ -31,11 +31,7 @@
#import "SPCategoryAdditions.h"
#import "RegexKitLite.h"
#import "SPDatabaseData.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#define SP_NUMBER_OF_RECORDS_STRING NSLocalizedString(@"%ld of %@%lu records", @"Label showing the index of the selected CSV row")
diff --git a/Source/SPIndexesController.m b/Source/SPIndexesController.m
index 20f22dd0..c3ef394e 100644
--- a/Source/SPIndexesController.m
+++ b/Source/SPIndexesController.m
@@ -28,11 +28,7 @@
#import "SPServerSupport.h"
#import "SPTableContent.h"
#import "SPTableData.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#import "SPDatabaseDocument.h"
#import "SPTablesList.h"
#import "SPTableView.h"
diff --git a/Source/SPNavigatorController.m b/Source/SPNavigatorController.m
index 2b27a598..359d7b17 100644
--- a/Source/SPNavigatorController.m
+++ b/Source/SPNavigatorController.m
@@ -33,7 +33,7 @@
#import "SPTooltip.h"
#import "SPAppController.h"
#import "SPDatabaseViewController.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
#import "SPDatabaseStructure.h"
#import <objc/message.h>
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m
index 18263bb4..e2b1d471 100644
--- a/Source/SPProcessListController.m
+++ b/Source/SPProcessListController.m
@@ -27,7 +27,7 @@
#import "SPDatabaseDocument.h"
#import "SPAlertSheets.h"
#import "SPAppController.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
static const NSString *SPTableViewIDColumnIdentifier = @"Id";
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m
index 8ba6c160..81e7756e 100644
--- a/Source/SPSQLExporter.m
+++ b/Source/SPSQLExporter.m
@@ -30,7 +30,7 @@
#import "SPExportFile.h"
#import "SPTableData.h"
#import "RegexKitLite.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
@interface SPSQLExporter ()
diff --git a/Source/SPSSHTunnel.h b/Source/SPSSHTunnel.h
index 64edd3a2..0984cd43 100644
--- a/Source/SPSSHTunnel.h
+++ b/Source/SPSSHTunnel.h
@@ -23,13 +23,8 @@
//
// More info at <http://code.google.com/p/sequel-pro/>
-#ifndef SP_REFACTOR
-#import "SPMySQLConnectionProxy.h"
-#import "SPMySQLConstants.h"
-#else
#import <SPMySQL/SPMySQLConnectionProxy.h>
#import <SPMySQL/SPMySQLConstants.h>
-#endif
@interface SPSSHTunnel : NSObject <SPMySQLConnectionProxy>
{
diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m
index 2820d1fd..aae71891 100644
--- a/Source/SPSSHTunnel.m
+++ b/Source/SPSSHTunnel.m
@@ -27,11 +27,7 @@
#import "RegexKitLite.h"
#import "SPKeychain.h"
#import "SPAlertSheets.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#import <netinet/in.h>
diff --git a/Source/SPServerVariablesController.m b/Source/SPServerVariablesController.m
index 50f03e31..4cb85e5c 100644
--- a/Source/SPServerVariablesController.m
+++ b/Source/SPServerVariablesController.m
@@ -26,7 +26,7 @@
#import "SPServerVariablesController.h"
#import "SPDatabaseDocument.h"
#import "SPAppController.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
@interface SPServerVariablesController (PrivateAPI)
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 23bac322..75c286b7 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -38,11 +38,9 @@
#import "SPQueryDocumentsController.h"
#import "SPTextAndLinkCell.h"
#ifndef SP_REFACTOR
-#import "SPMySQL.h"
#import "QLPreviewPanel.h"
-#else
-#import <SPMySQL/SPMySQL.h>
#endif
+#import <SPMySQL/SPMySQL.h>
#import "SPFieldEditorController.h"
#import "SPTooltip.h"
#import "RegexKitLite.h"
diff --git a/Source/SPTableContentDataSource.m b/Source/SPTableContentDataSource.m
index 4289ade4..a833add7 100644
--- a/Source/SPTableContentDataSource.m
+++ b/Source/SPTableContentDataSource.m
@@ -31,12 +31,11 @@
// More info at <http://code.google.com/p/sequel-pro/>
#import "SPTableContentDataSource.h"
-#import "SPMySQLGeometryData.h"
#import "SPDataStorage.h"
-#import "SPMySQL.h"
#import "SPCopyTable.h"
#import "SPTablesList.h"
+#import <SPMySQL/SPMySQL.h>
#import <pthread.h>
@implementation SPTableContent (SPTableContentDataSource)
diff --git a/Source/SPTableContentDelegate.m b/Source/SPTableContentDelegate.m
index 96c7bbec..83eb4149 100644
--- a/Source/SPTableContentDelegate.m
+++ b/Source/SPTableContentDelegate.m
@@ -37,7 +37,7 @@
#import "SPGeometryDataView.h"
#import "SPTooltip.h"
#import "SPTablesList.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
#import "SPBundleHTMLOutputController.h"
#import "SPCopyTable.h"
#import "SPAlertSheets.h"
diff --git a/Source/SPTableCopy.m b/Source/SPTableCopy.m
index 5efc91c0..47c425a7 100644
--- a/Source/SPTableCopy.m
+++ b/Source/SPTableCopy.m
@@ -24,11 +24,7 @@
#import "SPDBActionCommons.h"
#import "SPTableCopy.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
@implementation SPTableCopy
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index ac40d94e..262b2d3c 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -30,11 +30,7 @@
#import "SPAlertSheets.h"
#import "RegexKitLite.h"
#import "SPServerSupport.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#include <pthread.h>
@interface SPTableData (PrivateAPI)
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m
index 44d05ee7..2cc3c9d2 100644
--- a/Source/SPTableRelations.m
+++ b/Source/SPTableRelations.m
@@ -30,7 +30,7 @@
#import "SPTableView.h"
#import "SPAlertSheets.h"
#import "RegexKitLite.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
static NSString *SPRemoveRelation = @"SPRemoveRelation";
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m
index 6fbc6aac..e443710c 100644
--- a/Source/SPTableStructure.m
+++ b/Source/SPTableStructure.m
@@ -36,11 +36,7 @@
#import "SPIndexesController.h"
#import "RegexKitLite.h"
#import "SPTableFieldValidation.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
@interface SPTableStructure (PrivateAPI)
diff --git a/Source/SPTableStructureDelegate.m b/Source/SPTableStructureDelegate.m
index b77c70f4..383a7474 100644
--- a/Source/SPTableStructureDelegate.m
+++ b/Source/SPTableStructureDelegate.m
@@ -30,11 +30,7 @@
#import "SPTableData.h"
#import "SPTableView.h"
#import "SPTableFieldValidation.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
@implementation SPTableStructure (SPTableStructureDelegate)
diff --git a/Source/SPTableTriggers.m b/Source/SPTableTriggers.m
index 393b0568..ad412061 100644
--- a/Source/SPTableTriggers.m
+++ b/Source/SPTableTriggers.m
@@ -30,7 +30,7 @@
#import "SPTableView.h"
#import "SPAlertSheets.h"
#import "SPServerSupport.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
// Constants
static const NSString *SPTriggerName = @"TriggerName";
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index 8e2e8316..b863f3fb 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -27,11 +27,7 @@
#import "SPDatabaseDocument.h"
#import "SPTableStructure.h"
#import "SPDatabaseViewController.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#ifndef SP_REFACTOR /* headers */
#import "SPTableContent.h"
diff --git a/Source/SPTextView.m b/Source/SPTextView.m
index 2b2e5e04..1b1bcf33 100644
--- a/Source/SPTextView.m
+++ b/Source/SPTextView.m
@@ -36,11 +36,7 @@
#import "SPBundleHTMLOutputController.h"
#import "SPDatabaseViewController.h"
#import "SPAppController.h"
-#ifndef SP_REFACTOR
-#import "SPMySQL.h"
-#else
#import <SPMySQL/SPMySQL.h>
-#endif
#import "SPDatabaseStructure.h"
#pragma mark -
diff --git a/Source/SPXMLExporter.m b/Source/SPXMLExporter.m
index 8393b937..1fc29c6f 100644
--- a/Source/SPXMLExporter.m
+++ b/Source/SPXMLExporter.m
@@ -27,7 +27,7 @@
#import "SPExportFile.h"
#import "SPFileHandle.h"
#import "SPExportUtilities.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
@implementation SPXMLExporter
diff --git a/Source/SPXMLExporterDelegate.m b/Source/SPXMLExporterDelegate.m
index 013019b2..8b1d9e73 100644
--- a/Source/SPXMLExporterDelegate.m
+++ b/Source/SPXMLExporterDelegate.m
@@ -27,7 +27,7 @@
#import "SPXMLExporter.h"
#import "SPDatabaseDocument.h"
#import "SPExportFile.h"
-#import "SPMySQL.h"
+#import <SPMySQL/SPMySQL.h>
@implementation SPExportController (SPXMLExporterDelegate)