aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-07-28 21:17:39 +0000
committerrowanbeentje <rowan@beent.je>2009-07-28 21:17:39 +0000
commit0dde7ac68d34773c0b5a8cd8af38a931636d80a0 (patch)
tree63f18967b02d91a43fba65391313674ec3b63762 /Frameworks/MCPKit/MCPFoundationKit
parentf30882885fd781d8a25900896e026138ef9ae5a7 (diff)
downloadsequelpro-0dde7ac68d34773c0b5a8cd8af38a931636d80a0.tar.gz
sequelpro-0dde7ac68d34773c0b5a8cd8af38a931636d80a0.tar.bz2
sequelpro-0dde7ac68d34773c0b5a8cd8af38a931636d80a0.zip
- Remove compression option in mysql_options (already set as part of connection flags)
- Add CLIENT_REMEMBER_OPTIONS to connection flags
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m5
1 files changed, 1 insertions, 4 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index 7429e23a..8d70827d 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -39,7 +39,7 @@
static jmp_buf pingTimeoutJumpLocation;
static void forcePingTimeout(int signalNumber);
-const unsigned int kMCPConnectionDefaultOption = CLIENT_COMPRESS;
+const unsigned int kMCPConnectionDefaultOption = CLIENT_COMPRESS | CLIENT_REMEMBER_OPTIONS ;
const char *kMCPConnectionDefaultSocket = MYSQL_UNIX_ADDR;
const unsigned int kMCPConnection_Not_Inited = 1000;
const unsigned int kLengthOfTruncationForLog = 100;
@@ -295,9 +295,6 @@ static BOOL sTruncateLongFieldInLogs = YES;
// detect when this has occurred. Custom reconnection may be preferable.
my_bool trueBool = TRUE;
mysql_options(mConnection, MYSQL_OPT_RECONNECT, &trueBool);
-
- // Ensure compression is enabled where possible
- mysql_options(mConnection, MYSQL_OPT_COMPRESS, 0);
}
// Set the host as appropriate