diff options
author | stuconnolly <stuart02@gmail.com> | 2009-07-23 17:54:50 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-07-23 17:54:50 +0000 |
commit | cdb3bc05f56e2a7a89581f3ed42e5147323c014f (patch) | |
tree | ad124aadf415b2a78ebce87bc72435e4fb9bab5e /Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h | |
parent | aaf452b0385bf4cd37b939a0dfc1375e191380f5 (diff) | |
download | sequelpro-cdb3bc05f56e2a7a89581f3ed42e5147323c014f.tar.gz sequelpro-cdb3bc05f56e2a7a89581f3ed42e5147323c014f.tar.bz2 sequelpro-cdb3bc05f56e2a7a89581f3ed42e5147323c014f.zip |
To fix query logging not working, initialize delegateQueryLogging to YES upon connection initialization as well as setting the value based on the user's preferences during initiateMySQLConnection in SPConnectionController. Also, initialize delegateResponseToWillQueryString when the connection's delegate is set and revert back to simply calling the delegate method willQueryString:connection: as opposed to using the selector cache as its currently not working. Might need to look into restoring this if we incur a big performance hit after this revision.
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h')
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h index 4a0f7485..87b9ca57 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.h @@ -119,7 +119,6 @@ static inline NSData* NSStringDataUsingLossyEncoding(NSString* self, int encodin SEL timeConnectedSEL; } -@property (readwrite, assign) id delegate; @property (readwrite, assign) BOOL useKeepAlive; @property (readwrite, assign) BOOL delegateQueryLogging; @property (readwrite, assign) int connectionTimeout; @@ -129,6 +128,10 @@ static inline NSData* NSStringDataUsingLossyEncoding(NSString* self, int encodin - (id)initToHost:(NSString *)host withLogin:(NSString *)login usingPort:(int)port; - (id)initToSocket:(NSString *)socket withLogin:(NSString *)login; +// Delegate +- (id)delegate; +- (void)setDelegate:(id)connectionDelegate; + // Connection details - (BOOL)setPort:(int)thePort; - (BOOL)setPassword:(NSString *)thePassword; |