diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TablesList.m | 8 |
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]; + + } /** |