aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableCopy.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/SPTableCopy.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/SPTableCopy.m')
-rw-r--r--Source/SPTableCopy.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPTableCopy.m b/Source/SPTableCopy.m
index d390243c..1059e032 100644
--- a/Source/SPTableCopy.m
+++ b/Source/SPTableCopy.m
@@ -24,6 +24,7 @@
#import "SPDBActionCommons.h"
#import "SPTableCopy.h"
+#import "SPMySQL.h"
@implementation SPTableCopy
@@ -31,10 +32,10 @@
{
NSString *showCreateTableStatment = [NSString stringWithFormat:@"SHOW CREATE TABLE %@.%@", [sourceDB backtickQuotedString], [tableName backtickQuotedString]];
- MCPResult *theResult = [connection queryString:showCreateTableStatment];
+ SPMySQLResult *theResult = [connection queryString:showCreateTableStatment];
- if ([theResult numOfRows] != 0) {
- return [[theResult fetchRowAsArray] objectAtIndex:1];
+ if ([theResult numberOfRows] != 0) {
+ return [[theResult getRowAsArray] objectAtIndex:1];
}
return @"";