aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-26 21:47:34 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-26 21:47:34 +0000
commit7c2de8d57e2ef4e463ae788ab2b58b019c8c9828 (patch)
tree5a86ec6be3375ee8216d4d51ffb4ffc5087ab99f
parentf1d7f71bca0abd24f16d65279d0431e8d6678a8e (diff)
downloadsequelpro-7c2de8d57e2ef4e463ae788ab2b58b019c8c9828.tar.gz
sequelpro-7c2de8d57e2ef4e463ae788ab2b58b019c8c9828.tar.bz2
sequelpro-7c2de8d57e2ef4e463ae788ab2b58b019c8c9828.zip
changed the invoking point of db structure query at the very end of updateTables: to be able to collect all available tables while querying the structure
-rw-r--r--Source/TablesList.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index f5d479ee..a0b2c962 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -91,9 +91,6 @@
// Notify listeners that a query has started
[[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryWillBePerformed" object:tableDocumentInstance];
- // Query the structure of all databases in the background (mainly for completion)
- [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:nil];
-
// Select the table list for the current database. On MySQL versions after 5 this will include
// views; on MySQL versions >= 5.0.02 select the "full" list to also select the table type column.
theResult = [mySQLConnection queryString:@"SHOW /*!50002 FULL*/ TABLES"];
@@ -252,6 +249,11 @@
}
if (previousSelectedTable) [previousSelectedTable release];
+
+ // Query the structure of all databases in the background
+ [NSThread detachNewThreadSelector:@selector(queryDbStructureWithUserInfo:) toTarget:mySQLConnection withObject:nil];
+
+
}
/**