aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-01-30 21:41:18 +0000
committerrowanbeentje <rowan@beent.je>2010-01-30 21:41:18 +0000
commita776a6437e40837cc2e20a9231e3eb8ef1a73ddf (patch)
treec82215d051a4529a2608a2880526696ba041c263 /Source/TableContent.m
parent12b199d998018affa4e358b0d4e26f7cd878f8cd (diff)
downloadsequelpro-a776a6437e40837cc2e20a9231e3eb8ef1a73ddf.tar.gz
sequelpro-a776a6437e40837cc2e20a9231e3eb8ef1a73ddf.tar.bz2
sequelpro-a776a6437e40837cc2e20a9231e3eb8ef1a73ddf.zip
Rework CMCopyTable copy functionality and related code:
- Reverse the effects of the r1664/r1690 combination, restoring the original link from CMCopyTable to the underlying data source - Adapt the code to retrieve information from the new SPDataStorage; update SPDataStorage as necessary if underlying data changes - Refactor and speed up various checks and loops for speed and logic improvements - Ensure the binary-encoded TEXT data is hex encoded rather than retrieved as "<123ABC 123ABC...>" NSData representations - Fix some memory leaks This resolves Issue #533 and the original "Copy as SQL" issue
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index e220a4b1..64996349 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -223,7 +223,7 @@
[tableContentView performSelectorOnMainThread:@selector(displayIfNeeded) withObject:nil waitUntilDone:NO];
// Init copyTable with necessary information for copying selected rows as SQL INSERT
- [tableContentView setTableInstance:self withColumns:dataColumns withTableName:selectedTable withConnection:mySQLConnection];
+ [tableContentView setTableInstance:self withTableData:tableValues withColumns:dataColumns withTableName:selectedTable withConnection:mySQLConnection];
// Post the notification that the query is finished
[[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:tableDocumentInstance];
@@ -531,6 +531,7 @@
pthread_mutex_lock(&tableValuesLock);
tableRowsCount = 0;
tableValues = [[SPDataStorage alloc] init];
+ [tableContentView setTableData:tableValues];
pthread_mutex_unlock(&tableValuesLock);
[tableValuesTransition release];
}