diff options
author | dmoagx <post@wickenrode.com> | 2010-12-18 16:44:46 +0000 |
---|---|---|
committer | dmoagx <post@wickenrode.com> | 2010-12-18 16:44:46 +0000 |
commit | 8ad3b1a34828fd624ceaa4a238fdf84fdf8536cb (patch) | |
tree | 45f113f024cca2bf2536639128c9c536657eb8e4 /Source/SPDatabaseDocument.m | |
parent | 072a730f22e3c06fed48acf31ac5708259c93a32 (diff) | |
download | sequelpro-8ad3b1a34828fd624ceaa4a238fdf84fdf8536cb.tar.gz sequelpro-8ad3b1a34828fd624ceaa4a238fdf84fdf8536cb.tar.bz2 sequelpro-8ad3b1a34828fd624ceaa4a238fdf84fdf8536cb.zip |
* Recognize "performance_schema" as system DB (added in 5.5)
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 8557eeba..1e568fec 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -493,7 +493,8 @@ YY_BUFFER_STATE yy_scan_string (const char *); NSString *database = NSArrayObjectAtIndex([queryResult fetchRowAsArray], 0); // If the database is either information_schema or mysql then it is classed as a system table - if ([database isEqualToString:@"information_schema"] || [database isEqualToString:@"mysql"]) { + // 5.5.3+ performance_schema + if ([database isEqualToString:@"information_schema"] || [database isEqualToString:@"mysql"] || [database isEqualToString:@"performance_schema"]) { [allSystemDatabases addObject:database]; } else { |