From 7c2de8d57e2ef4e463ae788ab2b58b019c8c9828 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 26 Mar 2010 21:47:34 +0000 Subject: 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 --- Source/TablesList.m | 8 +++++--- 1 file 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]; + + } /** -- cgit v1.2.3