aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-03-17 18:17:38 +0000
committerstuconnolly <stuart02@gmail.com>2012-03-17 18:17:38 +0000
commit9568839a6f8ae7f22c0b341959b4ce345117cf35 (patch)
tree1678054e9ded2e87e02b61684d13740b604d3096
parent8244c7c382113ce3fedc331f7901c1afa712134b (diff)
downloadsequelpro-9568839a6f8ae7f22c0b341959b4ce345117cf35.tar.gz
sequelpro-9568839a6f8ae7f22c0b341959b4ce345117cf35.tar.bz2
sequelpro-9568839a6f8ae7f22c0b341959b4ce345117cf35.zip
Missing from previous commit.
-rw-r--r--Source/SPTextView.m7
1 files 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];