aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMMCPConnection.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-06-17 00:18:10 +0000
committerrowanbeentje <rowan@beent.je>2009-06-17 00:18:10 +0000
commit59f37e44da3450d37356c87129a3d8592d5c2259 (patch)
treeb9b0c80d498ea3ec0c0fa5b78306144d466614d8 /Source/CMMCPConnection.h
parent64f60651f176ba49d70790cdbb9f83488dc76612 (diff)
downloadsequelpro-59f37e44da3450d37356c87129a3d8592d5c2259.tar.gz
sequelpro-59f37e44da3450d37356c87129a3d8592d5c2259.tar.bz2
sequelpro-59f37e44da3450d37356c87129a3d8592d5c2259.zip
Significant connection improvements:
- Restored MySQL 3 compatibility - max_packet_size details are now cached per connection for query speedup and to fix network recovery problems - Improved disconnection recovery - Errors during results fetching are correctly detected for the first time - Error strings are now correctly set in several places - The correct number of rows affected is now returned for queries which triggered reconnects or max_packet_size increases
Diffstat (limited to 'Source/CMMCPConnection.h')
-rw-r--r--Source/CMMCPConnection.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/CMMCPConnection.h b/Source/CMMCPConnection.h
index 03a5079f..f69c3069 100644
--- a/Source/CMMCPConnection.h
+++ b/Source/CMMCPConnection.h
@@ -52,6 +52,8 @@
NSString *connectionHost;
int connectionPort;
NSString *connectionSocket;
+ int maxAllowedPacketSize;
+ unsigned long connectionThreadId;
int connectionTimeout;
int currentSSHTunnelState;
BOOL useKeepAlive;
@@ -60,6 +62,7 @@
float lastQueryExecutionTime;
NSString *lastQueryErrorMessage;
unsigned int lastQueryErrorId;
+ my_ulonglong lastQueryAffectedRows;
BOOL isMaxAllowedPacketEditable;
@@ -91,7 +94,7 @@
- (float) lastQueryExecutionTime;
- (MCPResult *) listDBsLike:(NSString *) dbsName;
- (BOOL) checkConnection;
-- (void) restoreEncodingDetails;
+- (void) restoreConnectionDetails;
- (void) setDelegate:(id)object;
- (NSTimeZone *) timeZone;
- (BOOL) pingConnection;
@@ -100,6 +103,8 @@
- (void) keepAlive:(NSTimer *)theTimer;
- (void) threadedKeepAlive;
- (const char *) cStringFromString:(NSString *) theString usingEncoding:(NSStringEncoding) encoding;
+- (void) setLastErrorMessage:(NSString *)theErrorMessage;
+- (BOOL) fetchMaxAllowedPacket;
- (int) getMaxAllowedPacket;
- (BOOL) isMaxAllowedPacketEditable;
- (int) setMaxAllowedPacketTo:(int)newSize resetSize:(BOOL)reset;