From 9568839a6f8ae7f22c0b341959b4ce345117cf35 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 17 Mar 2012 18:17:38 +0000 Subject: Missing from previous commit. --- Source/SPTextView.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/SPTextView.m b/Source/SPTextView.m index eb8b8064..c4b600f8 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -398,9 +398,10 @@ NSInteger _alphabeticSort(id string1, id string2, void *reverse) // Put information_schema and/or mysql db at the end if not selected // 5.5.3+ also has performance_schema - NSString* mysql_id = [NSString stringWithFormat:@"%@%@%@", connectionID, SPUniqueSchemaDelimiter, @"mysql"]; - NSString* inf_id = [NSString stringWithFormat:@"%@%@%@", connectionID, SPUniqueSchemaDelimiter, @"information_schema"]; - NSString* perf_id = [NSString stringWithFormat:@"%@%@%@", connectionID, SPUniqueSchemaDelimiter, @"performance_schema"]; + NSString* mysql_id = [NSString stringWithFormat:@"%@%@%@", connectionID, SPUniqueSchemaDelimiter, SPMySQLDatabase]; + NSString* inf_id = [NSString stringWithFormat:@"%@%@%@", connectionID, SPUniqueSchemaDelimiter, SPMySQLInformationSchemaDatabase]; + NSString* perf_id = [NSString stringWithFormat:@"%@%@%@", connectionID, SPUniqueSchemaDelimiter, SPMySQLPerformanceSchemaDatabase]; + if(currentDb && ![currentDb isEqualToString:mysql_id] && [sortedDbs containsObject:mysql_id]) { [sortedDbs removeObject:mysql_id]; [sortedDbs addObject:mysql_id]; -- cgit v1.2.3