aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPExtendedTableInfo.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/SPExtendedTableInfo.m
parente26e22d9d6a6641cfc0a35e8ae31c12aee8bea5b (diff)
downloadsequelpro-8244c7c382113ce3fedc331f7901c1afa712134b.tar.gz
sequelpro-8244c7c382113ce3fedc331f7901c1afa712134b.tar.bz2
sequelpro-8244c7c382113ce3fedc331f7901c1afa712134b.zip
Add constants for MySQL 'system' databases.
Diffstat (limited to 'Source/SPExtendedTableInfo.m')
-rw-r--r--Source/SPExtendedTableInfo.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPExtendedTableInfo.m b/Source/SPExtendedTableInfo.m
index 5cd867ce..9baaecab 100644
--- a/Source/SPExtendedTableInfo.m
+++ b/Source/SPExtendedTableInfo.m
@@ -563,7 +563,9 @@ static NSString *SPUpdateTableTypeNewType = @"SPUpdateTableTypeNewType";
// If we are viewing tables in the information_schema database, then disable all controls that cause table
// changes as these tables are not modifiable by anyone.
// also affects mysql and performance_schema
- BOOL isSystemSchemaDb = ([[tableDocumentInstance database] isEqualToString:@"information_schema"] || [[tableDocumentInstance database] isEqualToString:@"performance_schema"] || [[tableDocumentInstance database] isEqualToString:@"mysql"]);
+ BOOL isSystemSchemaDb = ([[tableDocumentInstance database] isEqualToString:SPMySQLInformationSchemaDatabase] ||
+ [[tableDocumentInstance database] isEqualToString:SPMySQLPerformanceSchemaDatabase] ||
+ [[tableDocumentInstance database] isEqualToString:SPMySQLDatabase]);
if ([[databaseDataInstance getDatabaseStorageEngines] count] && [statusFields objectForKey:@"Engine"]) {
[tableTypePopUpButton setEnabled:(!isSystemSchemaDb)];