aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionHandler.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-30 00:13:22 +0200
committerMax <post@wickenrode.com>2015-07-30 00:13:22 +0200
commit291078f1c4c28e5a2c69358a8aa9883862717e36 (patch)
tree154ef565031ed3fa93f6780d1eac4dc8045e372d /Source/SPConnectionHandler.m
parent26c821cf128255e89a6ff15f98891dbff1fc3840 (diff)
downloadsequelpro-291078f1c4c28e5a2c69358a8aa9883862717e36.tar.gz
sequelpro-291078f1c4c28e5a2c69358a8aa9883862717e36.tar.bz2
sequelpro-291078f1c4c28e5a2c69358a8aa9883862717e36.zip
Add code to disable mysql protocol compression (no UI) to connect to Amazon Aurora (see #2122)
Diffstat (limited to 'Source/SPConnectionHandler.m')
-rw-r--r--Source/SPConnectionHandler.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPConnectionHandler.m b/Source/SPConnectionHandler.m
index aeb4eb36..d27e9a1a 100644
--- a/Source/SPConnectionHandler.m
+++ b/Source/SPConnectionHandler.m
@@ -157,6 +157,9 @@ static NSString *SPLocalhostAddress = @"127.0.0.1";
}
}
+ if(![self useCompression])
+ [mySQLConnection removeClientFlags:SPMySQLClientFlagCompression];
+
// Connection delegate must be set before actual connection attempt is made
[mySQLConnection setDelegate:dbDocument];