aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
diff options
context:
space:
mode:
authordmoagx <post@wickenrode.com>2010-12-18 16:44:46 +0000
committerdmoagx <post@wickenrode.com>2010-12-18 16:44:46 +0000
commit8ad3b1a34828fd624ceaa4a238fdf84fdf8536cb (patch)
tree45f113f024cca2bf2536639128c9c536657eb8e4 /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
parent072a730f22e3c06fed48acf31ac5708259c93a32 (diff)
downloadsequelpro-8ad3b1a34828fd624ceaa4a238fdf84fdf8536cb.tar.gz
sequelpro-8ad3b1a34828fd624ceaa4a238fdf84fdf8536cb.tar.bz2
sequelpro-8ad3b1a34828fd624ceaa4a238fdf84fdf8536cb.zip
* Recognize "performance_schema" as system DB (added in 5.5)
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index 03cade24..af5e6123 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -2395,7 +2395,8 @@ void pingThreadCleanup(MCPConnectionPingDetails *pingDetails)
// The cache is available. If the `mysql` or `information_schema` databases are being queried,
// never requery as their structure will never change.
- if ([currentDatabase isEqualToString:@"mysql"] || [currentDatabase isEqualToString:@"information_schema"]) {
+ // 5.5.3+ also has performance_schema meta database
+ if ([currentDatabase isEqualToString:@"mysql"] || [currentDatabase isEqualToString:@"information_schema"] || [currentDatabase isEqualToString:@"performance_schema"]) {
shouldQueryStructure = NO;
// Otherwise, if the forceUpdate flag wasn't supplied or evaluates to false, also don't update.