aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-03-17 18:14:59 +0000
committerstuconnolly <stuart02@gmail.com>2012-03-17 18:14:59 +0000
commit8244c7c382113ce3fedc331f7901c1afa712134b (patch)
treea19a46d80942c6441fab0b3a4255d74ec01043d1 /Source/SPDatabaseDocument.m
parente26e22d9d6a6641cfc0a35e8ae31c12aee8bea5b (diff)
downloadsequelpro-8244c7c382113ce3fedc331f7901c1afa712134b.tar.gz
sequelpro-8244c7c382113ce3fedc331f7901c1afa712134b.tar.bz2
sequelpro-8244c7c382113ce3fedc331f7901c1afa712134b.zip
Add constants for MySQL 'system' databases.
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index da2dbaf7..09f24d7a 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -613,9 +613,12 @@ static NSString *SPCreateSyntx = @"SPCreateSyntax";
// If the database is either information_schema or mysql then it is classed as a
// system table; similarly, for 5.5.3+, performance_schema
- if ([databaseName isEqualToString:@"information_schema"] || [databaseName isEqualToString:@"mysql"] || [databaseName isEqualToString:@"performance_schema"]) {
- [allSystemDatabases addObject:databaseName];
- } else {
+ if ([database isEqualToString:SPMySQLDatabase] ||
+ [database isEqualToString:SPMySQLInformationSchemaDatabase] ||
+ [database isEqualToString:SPMySQLPerformanceSchemaDatabase]) {
+ [allSystemDatabases addObject:database];
+ }
+ else {
[allDatabases addObject:databaseName];
}
}