diff options
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 9 |
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]; } } |