aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMMCPConnection.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-16 19:33:15 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-16 19:33:15 +0000
commit64f60651f176ba49d70790cdbb9f83488dc76612 (patch)
treed0b4a527baae228bc871790430d072e057f01ceb /Source/CMMCPConnection.h
parent2328cfd33463381741f29b196e867fc87676b799 (diff)
downloadsequelpro-64f60651f176ba49d70790cdbb9f83488dc76612.tar.gz
sequelpro-64f60651f176ba49d70790cdbb9f83488dc76612.tar.bz2
sequelpro-64f60651f176ba49d70790cdbb9f83488dc76612.zip
• added to CMMCPConnection:
- register notification "SMySQLQueryWillBePerformed" to be able to identify the sender of the current query - (void)willPerformQuery:(NSNotification *)notification -- receives the "SMySQLQueryWillBePerformed" notification -- if CustomQuery was the sender retryAllowed will be set to NO • changed: now using mysql_real_query() because we've already calculated the length of the current query • changed: now the query length will be checked in beforehand against max_allowed_packet - if max_allowed_packet is editable increase it and reconnect - if not outputs an informative error alert
Diffstat (limited to 'Source/CMMCPConnection.h')
-rw-r--r--Source/CMMCPConnection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CMMCPConnection.h b/Source/CMMCPConnection.h
index da029e9f..03a5079f 100644
--- a/Source/CMMCPConnection.h
+++ b/Source/CMMCPConnection.h
@@ -67,6 +67,8 @@
NSTimer *keepAliveTimer;
NSDate *lastKeepAliveSuccess;
+
+ BOOL retryAllowed;
}
- (id) init;
@@ -102,6 +104,8 @@
- (BOOL) isMaxAllowedPacketEditable;
- (int) setMaxAllowedPacketTo:(int)newSize resetSize:(BOOL)reset;
+- (void)willPerformQuery:(NSNotification *)notification;
+
/* return server major version number or -1 on fail */
- (int)serverMajorVersion;
/* return server minor version number or -1 on fail */