aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPDatabaseDocument.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index 09f24d7a..cff43d9b 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -613,10 +613,10 @@ 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 ([database isEqualToString:SPMySQLDatabase] ||
- [database isEqualToString:SPMySQLInformationSchemaDatabase] ||
- [database isEqualToString:SPMySQLPerformanceSchemaDatabase]) {
- [allSystemDatabases addObject:database];
+ if ([databaseName isEqualToString:SPMySQLDatabase] ||
+ [databaseName isEqualToString:SPMySQLInformationSchemaDatabase] ||
+ [databaseName isEqualToString:SPMySQLPerformanceSchemaDatabase]) {
+ [allSystemDatabases addObject:databaseName];
}
else {
[allDatabases addObject:databaseName];