From 0dde7ac68d34773c0b5a8cd8af38a931636d80a0 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Tue, 28 Jul 2009 21:17:39 +0000 Subject: - Remove compression option in mysql_options (already set as part of connection flags) - Add CLIENT_REMEMBER_OPTIONS to connection flags --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Frameworks/MCPKit') 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 -- cgit v1.2.3