aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMMCPConnection.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-11 18:41:49 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-11 18:41:49 +0000
commitf75f70ecc3a72e771bee6e1a73944836d0883c53 (patch)
tree245bb95f2c090ac0a182a0ccfe3fa3f188632fb6 /Source/CMMCPConnection.h
parenta4911754d0fba5909c5bb35157aff8032c47bc2b (diff)
downloadsequelpro-f75f70ecc3a72e771bee6e1a73944836d0883c53.tar.gz
sequelpro-f75f70ecc3a72e771bee6e1a73944836d0883c53.tar.bz2
sequelpro-f75f70ecc3a72e771bee6e1a73944836d0883c53.zip
• fix to allow insert large blob data
If a query gave the error 2006 (server has gone away) try to increase max_allowed_packet - if the user has SUPER privileges - and redo the query. If max_allowed_packet was changed reset it to default after executing. In addition if error 2006 occurred and max_allowed_packet can't be set write an additional error message to the log "(Please check if query size < max_allowed_packet)". - 10MB of data are no problem - while trying to insert 67MB MySQL gave the error : ... X'(null)' plus malloc: mmap(size=141287424) failed (error code=12); can't allocate region
Diffstat (limited to 'Source/CMMCPConnection.h')
-rw-r--r--Source/CMMCPConnection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CMMCPConnection.h b/Source/CMMCPConnection.h
index 4b0330ec..2f2552e4 100644
--- a/Source/CMMCPConnection.h
+++ b/Source/CMMCPConnection.h
@@ -57,6 +57,8 @@
BOOL useKeepAlive;
float keepAliveInterval;
+ BOOL isMaxAllowedPacketEditable;
+
NSString *serverVersionString;
NSStringEncoding workerStringEncoding;