diff options
author | jakob <jakob@eggerapps.at> | 2010-04-16 17:18:54 +0000 |
---|---|---|
committer | jakob <jakob@eggerapps.at> | 2010-04-16 17:18:54 +0000 |
commit | f5f15a660b5663865347e2b2b162fba7ad86566f (patch) | |
tree | 5c8f1093381e02563f4b816c96a6848bf9efac3d /Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h | |
parent | 4c7dbcd724e9ac6fbd5943f147b15472833dceeb (diff) | |
download | sequelpro-f5f15a660b5663865347e2b2b162fba7ad86566f.tar.gz sequelpro-f5f15a660b5663865347e2b2b162fba7ad86566f.tar.bz2 sequelpro-f5f15a660b5663865347e2b2b162fba7ad86566f.zip |
- changed the query locking mechanism for MCPConnection to be more thread safe. From now on, always use [self lockConnection] rather than [queryLock lock], independent of what thread you are running on
- A warning is written to the console when the connection is unlocked multiple times (to identify potential race conditions)
- modified MCPStreamingResult to ensure it only closes the connection once
- added a check to prevent arrow key navigation past the last row
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h')
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h b/Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h index acdeee16..fba7d651 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConstants.h @@ -52,6 +52,13 @@ enum }; typedef NSUInteger MCPQueryStreamingType; +// Connection state +// This is used internally by MCPConnection to prevent simultaneous execution of different queries +enum { + MCPConnectionIdle = 0, + MCPConnectionBusy = 1 +}; + // Charcater set mapping constants typedef struct _OUR_CHARSET { |