From 64f60651f176ba49d70790cdbb9f83488dc76612 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 16 Jun 2009 19:33:15 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20to=20CMMCPConnection:=20-=20registe?= =?UTF-8?q?r=20notification=20"SMySQLQueryWillBePerformed"=20=20to=20be=20?= =?UTF-8?q?able=20to=20identify=20the=20sender=20of=20the=20current=20quer?= =?UTF-8?q?y=20-=20(void)willPerformQuery:(NSNotification=20*)notification?= =?UTF-8?q?=20--=20receives=20the=20"SMySQLQueryWillBePerformed"=20notific?= =?UTF-8?q?ation=20--=20if=20CustomQuery=20was=20the=20sender=20retryAllow?= =?UTF-8?q?ed=20will=20be=20set=20to=20NO=20=E2=80=A2=20changed:=20now=20u?= =?UTF-8?q?sing=20mysql=5Freal=5Fquery()=20because=20we've=20already=20cal?= =?UTF-8?q?culated=20the=20length=20of=20the=20current=20query=20=E2=80=A2?= =?UTF-8?q?=20changed:=20now=20the=20query=20length=20will=20be=20checked?= =?UTF-8?q?=20in=20beforehand=20against=20max=5Fallowed=5Fpacket=20-=20if?= =?UTF-8?q?=20max=5Fallowed=5Fpacket=20is=20editable=20increase=20it=20and?= =?UTF-8?q?=20reconnect=20-=20if=20not=20outputs=20an=20informative=20erro?= =?UTF-8?q?r=20alert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CMMCPConnection.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/CMMCPConnection.h') 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 */ -- cgit v1.2.3