aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-08-15 13:06:10 +0000
committerBibiko <bibiko@eva.mpg.de>2010-08-15 13:06:10 +0000
commit6b1b086cd39169d1cdf35c1e89251215ec09907d (patch)
tree2d504cc64208959eb8fab5ba67d183f5ae3abdbf /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
parenta9f195cffdb8fae186e6e9a053bb48fbeebbb618 (diff)
downloadsequelpro-6b1b086cd39169d1cdf35c1e89251215ec09907d.tar.gz
sequelpro-6b1b086cd39169d1cdf35c1e89251215ec09907d.tar.bz2
sequelpro-6b1b086cd39169d1cdf35c1e89251215ec09907d.zip
• made SP more robust against issues which are caused by different table name encodings
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index d8e43710..8ef0fb37 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -2306,9 +2306,13 @@ void performThreadedKeepAlive(void *ptr)
return;
}
+ if(![aTableDict objectForKey:@"name"]) continue;
// Extract the name
NSString *aTableName = [aTableDict objectForKey:@"name"];
+ if(!aTableName) continue;
+ if(![aTableName isKindOfClass:[NSString class]]) continue;
+ if(![aTableName length]) continue;
// Retrieve the column details
NSString *query = [NSString stringWithFormat:@"SHOW FULL COLUMNS FROM `%@` FROM `%@`",
[aTableName stringByReplacingOccurrencesOfString:@"`" withString:@"``"],