aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-26 19:23:18 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-26 19:23:18 +0000
commitf5edb22564ec1c3e834f20fd080a84ce581acfe4 (patch)
treeaf955d775594cd3713772c2d343111f270f94b91 /Source/TableDocument.m
parent1c3c288b8cc26d8de7119e3fff9b1ad60c9ee63a (diff)
downloadsequelpro-f5edb22564ec1c3e834f20fd080a84ce581acfe4.tar.gz
sequelpro-f5edb22564ec1c3e834f20fd080a84ce581acfe4.tar.bz2
sequelpro-f5edb22564ec1c3e834f20fd080a84ce581acfe4.zip
• navigator
- fixed issue if different connection windows are connected to the same connection - prepared structure querying method to be able to add user info containing which table/db was changed if we know it to reduce the future parsing cost
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 8663cc21..7725ee1c 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -688,9 +688,6 @@
window:tableWindow
notificationName:@"Connected"];
- // // Query the structure of all databases in the background (mainly for completion)
- // [NSThread detachNewThreadSelector:@selector(queryDbStructureAndForceUpdate:) toTarget:mySQLConnection withObject:nil];
-
// Init Custom Query editor with the stored queries in a spf file if given.
[spfDocData setObject:[NSNumber numberWithBool:NO] forKey:@"save_editor_content"];
if(spfSession != nil && [spfSession objectForKey:@"queries"]) {
@@ -1025,7 +1022,7 @@
[self _addDatabase];
// Query the structure of all databases in the background (mainly for completion)
- [NSThread detachNewThreadSelector:@selector(queryDbStructureAndForceUpdate:) toTarget:mySQLConnection withObject:[NSNumber numberWithBool:YES]];
+ [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"forceUpdate", nil]];
} else {
// reset chooseDatabaseButton
@@ -4104,7 +4101,7 @@
[allDatabases removeObject:[self database]];
// This only deletes the db and refreshes the navigator since nothing is changed
// that's why we can run this on main thread
- [mySQLConnection queryDbStructureAndForceUpdate:nil];
+ [mySQLConnection queryDbStructureWithUserInfo:nil];
// Delete was successful
if (selectedDatabase) [selectedDatabase release], selectedDatabase = nil;
@@ -4196,7 +4193,7 @@
}
// Query the structure of all databases in the background (mainly for completion)
- [NSThread detachNewThreadSelector:@selector(queryDbStructureAndForceUpdate:) toTarget:mySQLConnection withObject:nil];
+ [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:nil];
[self endTask];
[taskPool drain];