aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-29 13:17:12 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-29 13:17:12 +0000
commite9220681f3ad83c507ffd075844eab702f08405b (patch)
treedc929a3eec53a5d1acac91a2dc423d57b111ce8c /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
parentae0de60e69ffd51cda85ff70417cd354ee781c1c (diff)
downloadsequelpro-e9220681f3ad83c507ffd075844eab702f08405b.tar.gz
sequelpro-e9220681f3ad83c507ffd075844eab702f08405b.tar.bz2
sequelpro-e9220681f3ad83c507ffd075844eab702f08405b.zip
• improved completion suggestion for db schemata
- if user typed "foo." and there's an unique schema path regardless cases (like there's an item Foo) show the content of the path Foo - now getUniqueDbIdentifierFor:term returns an array of found type (db or table) and the found string to handle case better for completion • tried to speed up the search in the navigator by using a NSPredicate • [MCPConennection allKeysofDbStructure] - fixed issue while returning if allKeysofDbStructure == nil
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index 70249488..683cda7d 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -2029,8 +2029,8 @@ void performThreadedKeepAlive(void *ptr)
NSStringEncoding theConnectionEncoding = [MCPConnection encodingForMySQLEncoding:mysql_character_set_name(structConnection)];
NSString *charset;
- if(numberOfTables > 1000) {
- NSLog(@"%ld items in database %@. Stop parsing.", numberOfTables, currentDatabase);
+ if(numberOfTables > 2000) {
+ NSLog(@"%ld items in database %@. Only 2000 items can be parsed. Stopped parsing.", numberOfTables, currentDatabase);
isQueryingDbStructure = NO;
[queryPool release];
return;
@@ -2209,7 +2209,9 @@ void performThreadedKeepAlive(void *ptr)
*/
- (NSArray *)getAllKeysOfDbStructure
{
- return [allKeysofDbStructure allObjects];
+ if(allKeysofDbStructure && [allKeysofDbStructure count])
+ return [allKeysofDbStructure allObjects];
+ return [NSArray array];
}
#pragma mark -