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 /Source/SPConnectionController.m | |
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 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index b401219a..272808a5 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -286,6 +286,9 @@ // Connection delegate must be set before actual connection attempt is made [mySQLConnection setDelegate:tableDocument]; + + // Set whether or not we should enable delegate logging according to the prefs + [mySQLConnection setDelegateQueryLogging:[prefs boolForKey:@"ConsoleEnableLogging"]]; // Set options from preferences [mySQLConnection setConnectionTimeout:[[prefs objectForKey:@"ConnectionTimeoutValue"] intValue]]; |