aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-07-22 00:41:00 +0000
committerrowanbeentje <rowan@beent.je>2009-07-22 00:41:00 +0000
commit2c41f2706550e13312f50249ba9bfa6dc0a9e77d (patch)
tree5fda4d14a2adbc33fa78163f49528c5faa37262f
parent69a1f6a02d8aee011f47507d44d90b35c5b5aece (diff)
downloadsequelpro-2c41f2706550e13312f50249ba9bfa6dc0a9e77d.tar.gz
sequelpro-2c41f2706550e13312f50249ba9bfa6dc0a9e77d.tar.bz2
sequelpro-2c41f2706550e13312f50249ba9bfa6dc0a9e77d.zip
- Restore MySQL 3.x compatibility
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index 94b610bc..3dc94b3a 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -728,7 +728,7 @@ static void forcePingTimeout(int signalNumber)
if (serverVersionString == nil) {
[self _getServerVersionString];
}
-
+
if (serverVersionString != nil) {
return [[[serverVersionString componentsSeparatedByString:@"."] objectAtIndex:0] intValue];
}
@@ -1791,7 +1791,7 @@ static void forcePingTimeout(int signalNumber)
- (BOOL)fetchMaxAllowedPacket
{
char *queryString;
-
+
if ([self serverMajorVersion] == 3) queryString = "SHOW VARIABLES LIKE 'max_allowed_packet'";
else queryString = "SELECT @@global.max_allowed_packet";
@@ -1983,7 +1983,7 @@ static void forcePingTimeout(int signalNumber)
- (void)_getServerVersionString
{
if (mConnected) {
- MCPResult *theResult = [self queryString:@"SHOW VARIABLES WHERE Variable_name = 'version'"];
+ MCPResult *theResult = [self queryString:@"SHOW VARIABLES LIKE 'version'"];
if ([theResult numOfRows]) {
[theResult dataSeek:0];