aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-01 01:09:41 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-01 01:09:41 +0000
commit9fa1aca5bf60469daf8b86b4f31af7ecfdb7893f (patch)
tree2e940a38cdb017a5ea31c0f4ff8a3d735a4f1b07
parent802000b6dd29fd0ca6f60a2f51e7ab1eb49a2aef (diff)
downloadsequelpro-9fa1aca5bf60469daf8b86b4f31af7ecfdb7893f.tar.gz
sequelpro-9fa1aca5bf60469daf8b86b4f31af7ecfdb7893f.tar.bz2
sequelpro-9fa1aca5bf60469daf8b86b4f31af7ecfdb7893f.zip
When checking the existance of the ENGINES table within the information_schema database, use its exact name case-wise, to avoid problems on case sensitive filesystems (i.e. linux).
-rw-r--r--Source/SPDatabaseData.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDatabaseData.m b/Source/SPDatabaseData.m
index dc5bf05c..d10b9107 100644
--- a/Source/SPDatabaseData.m
+++ b/Source/SPDatabaseData.m
@@ -300,7 +300,7 @@ const CHAR_SETS charsets[] =
* Returns all of the database's available storage engines.
*/
- (NSArray *)getDatabaseStorageEngines
-{
+{
if ([storageEngines count] == 0) {
if ([connection serverMajorVersion] < 5) {
[storageEngines addObject:[NSDictionary dictionaryWithObject:@"MyISAM" forKey:@"Engine"]];
@@ -348,7 +348,7 @@ const CHAR_SETS charsets[] =
([connection serverReleaseVersion] >= 5))
{
// Check the information_schema.engines table is accessible
- MCPResult *result = [connection queryString:@"SHOW TABLES IN information_schema LIKE 'engines'"];
+ MCPResult *result = [connection queryString:@"SHOW TABLES IN information_schema LIKE 'ENGINES'"];
if ([result numOfRows] == 1) {
// Table is accessible so get available storage engines