aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-08 22:40:15 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-08 22:40:15 +0000
commit1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd (patch)
treee7a61f14749401a33bd5e4dcd39e893589f5deeb /Source/TableContent.m
parent56d7a059dc5ddd905ab58a58c2878eef7fe9c9ea (diff)
downloadsequelpro-1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd.tar.gz
sequelpro-1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd.tar.bz2
sequelpro-1df329b21dbc9a94ee36ad4f0ebb5cda88e914dd.zip
• added: "Copy as SQL INSERT" ^⌥⌘C
- up to now only available for the table content pane - supports blobs - if a primary key is given it also support (not yet loaded) blobs and long text data fields
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 7c548307..855c44ca 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -154,9 +154,6 @@
theColumns = [tableDataInstance columns];
columnNames = [tableDataInstance columnNames];
- // Init copyTable with necessary information for copying selected rows as SQL INSERT
- [tableContentView setTableInfoWithColumns:theColumns withTable:selectedTable];
-
// Retrieve the total number of rows of the current table
// to adjustify "Limit From:"
maxNumRowsOfCurrentTable = [[[tableDataInstance statusValues] objectForKey:@"Rows"] intValue];
@@ -347,6 +344,9 @@
// Reload the table data
[tableContentView reloadData];
+ // Init copyTable with necessary information for copying selected rows as SQL INSERT
+ [tableContentView setTableInstance:self withTableData:filteredResult withColumns:theColumns withTableName:selectedTable withConnection:mySQLConnection];
+
// Post the notification that the query is finished
[[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self];
}