aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMCopyTable.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMCopyTable.m')
-rw-r--r--Source/CMCopyTable.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m
index ed1e5439..7bb66da7 100644
--- a/Source/CMCopyTable.m
+++ b/Source/CMCopyTable.m
@@ -189,7 +189,7 @@ int MENU_EDIT_COPY_AS_SQL = 2002;
}
[result appendString:[NSString stringWithFormat:@"INSERT INTO `%@` (%@)\nVALUES\n",
- @"<table>", [tbHeader componentsJoinedAndBacktickQuoted]]];
+ (selectedTable == nil)?@"<table>":selectedTable, [tbHeader componentsJoinedAndBacktickQuoted]]];
int c;
id rowData = nil;
@@ -310,9 +310,10 @@ int MENU_EDIT_COPY_AS_SQL = 2002;
}
}
-- (void)setColumnDefinitions:(NSArray *)columnDefs
+- (void)setTableInfoWithColumns:(NSArray *)columnDefs withTable:(NSString *)aTable
{
columnDefinitions = [[NSArray arrayWithArray:columnDefs] retain];
+ selectedTable = aTable;
}
@end