aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseRename.m
diff options
context:
space:
mode:
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];