diff options
author | rowanbeentje <rowan@beent.je> | 2009-06-15 22:51:46 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-06-15 22:51:46 +0000 |
commit | e7c321f9af247b84eb566c35e6763324cf36b49b (patch) | |
tree | 09ff44ebfc1ead852f43d217da095e07b5d23351 /Source/CMMCPConnection.h | |
parent | a0593ce06bbc9a11493e77473a4e8e43fa4aa049 (diff) | |
download | sequelpro-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.h | 5 |
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; |