aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMMCPConnection.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-06-15 22:51:46 +0000
committerrowanbeentje <rowan@beent.je>2009-06-15 22:51:46 +0000
commite7c321f9af247b84eb566c35e6763324cf36b49b (patch)
tree09ff44ebfc1ead852f43d217da095e07b5d23351 /Source/CMMCPConnection.h
parenta0593ce06bbc9a11493e77473a4e8e43fa4aa049 (diff)
downloadsequelpro-e7c321f9af247b84eb566c35e6763324cf36b49b.tar.gz
sequelpro-e7c321f9af247b84eb566c35e6763324cf36b49b.tar.bz2
sequelpro-e7c321f9af247b84eb566c35e6763324cf36b49b.zip
Rework queryString:withEncoding:, and ensure memory is correctly released where used in our overwrites:
- Check allocated memory and ensure it is released in our code - Consolidate code controlling both an initial query and any retries following connection failures - Perform additional checking to ensure a connection error was the cause - Correctly capture any result sets after the max_allowed_packet setting was changed - Check and cache the error strings and numbers for the intended queries, not any helper queries, and return them when requested.
Diffstat (limited to 'Source/CMMCPConnection.h')
-rw-r--r--Source/CMMCPConnection.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CMMCPConnection.h b/Source/CMMCPConnection.h
index f9b8b022..da029e9f 100644
--- a/Source/CMMCPConnection.h
+++ b/Source/CMMCPConnection.h
@@ -52,12 +52,15 @@
NSString *connectionHost;
int connectionPort;
NSString *connectionSocket;
- float lastQueryExecutionTime;
int connectionTimeout;
int currentSSHTunnelState;
BOOL useKeepAlive;
float keepAliveInterval;
+ float lastQueryExecutionTime;
+ NSString *lastQueryErrorMessage;
+ unsigned int lastQueryErrorId;
+
BOOL isMaxAllowedPacketEditable;
NSString *serverVersionString;