aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseRename.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-03-18 20:05:36 +0000
committerstuconnolly <stuart02@gmail.com>2012-03-18 20:05:36 +0000
commit524e8c356b4074f5be5933b0551374a130a8f6d1 (patch)
tree0dab40735f2d9484930050cd08376cbf15e4ea55 /Source/SPDatabaseRename.m
parentbe3263f8158cb6f3dfa1005f49beefa7e494b852 (diff)
downloadsequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.tar.gz
sequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.tar.bz2
sequelpro-524e8c356b4074f5be5933b0551374a130a8f6d1.zip
Bring outline view branch up to date with trunk (r3471:r3517).
Diffstat (limited to 'Source/SPDatabaseRename.m')
-rw-r--r--Source/SPDatabaseRename.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPDatabaseRename.m b/Source/SPDatabaseRename.m
index b7aa3f73..1877e955 100644
--- a/Source/SPDatabaseRename.m
+++ b/Source/SPDatabaseRename.m
@@ -26,6 +26,7 @@
#import "SPDatabaseRename.h"
#import "SPTableCopy.h"
#import "SPDatabaseInfo.h"
+#import "SPMySQL.h"
@implementation SPDatabaseRename
@@ -59,7 +60,7 @@
if (sourceExists && !targetExists) {
// Retrieve the list of tables/views/funcs/triggers from the source database
- tables = [connection listTablesFromDB:sourceDatabaseName];
+ tables = [connection tablesFromDatabase:sourceDatabaseName];
}
else {
return NO;
@@ -78,7 +79,7 @@
[dbActionTableCopy release];
- tables = [connection listTablesFromDB:sourceDatabaseName];
+ tables = [connection tablesFromDatabase:sourceDatabaseName];
if ([tables count] == 0) {
[self dropDatabase:sourceDatabaseName];