From e9220681f3ad83c507ffd075844eab702f08405b Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 29 Mar 2010 13:17:12 +0000 Subject: =?UTF-8?q?=E2=80=A2=20improved=20completion=20suggestion=20for=20?= =?UTF-8?q?db=20schemata=20-=20if=20user=20typed=20"foo."=20and=20there's?= =?UTF-8?q?=20an=20unique=20schema=20path=20regardless=20cases=20(like=20t?= =?UTF-8?q?here's=20an=20item=20Foo)=20show=20the=20content=20of=20the=20p?= =?UTF-8?q?ath=20Foo=20-=20now=20getUniqueDbIdentifierFor:term=20returns?= =?UTF-8?q?=20an=20array=20of=20found=20type=20(db=20or=20table)=20and=20t?= =?UTF-8?q?he=20found=20string=20to=20handle=20case=20better=20for=20compl?= =?UTF-8?q?etion=20=E2=80=A2=20tried=20to=20speed=20up=20the=20search=20in?= =?UTF-8?q?=20the=20navigator=20by=20using=20a=20NSPredicate=20=E2=80=A2?= =?UTF-8?q?=20[MCPConennection=20allKeysofDbStructure]=20-=20fixed=20issue?= =?UTF-8?q?=20while=20returning=20if=20allKeysofDbStructure=20=3D=3D=20nil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Frameworks/MCPKit/MCPFoundationKit') 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 - -- cgit v1.2.3