diff options
author | rowanbeentje <rowan@beent.je> | 2009-08-31 23:00:39 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-08-31 23:00:39 +0000 |
commit | b2d168940430f6ab55d0aa635d38bcae1b64fcdb (patch) | |
tree | 49f9710ed77113830142d652cc2107f951b6cbc9 /Source/CustomQuery.m | |
parent | 934f1d41fa8699b3baba3c4ab7631e136fee14b7 (diff) | |
download | sequelpro-b2d168940430f6ab55d0aa635d38bcae1b64fcdb.tar.gz sequelpro-b2d168940430f6ab55d0aa635d38bcae1b64fcdb.tar.bz2 sequelpro-b2d168940430f6ab55d0aa635d38bcae1b64fcdb.zip |
- Re-enable the fine-grained query logging preferences
- Add defaults for fine-grained logging preferences
- Add a method to TableDocument to allow setting the query mode, and use the query mode to control logging
- Set import/export and custom query to set the appropriate query modes
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 17ca6d35..dcb42c26 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -340,6 +340,7 @@ // BOOL queriesSeparatedByDelimiter = NO; NSCharacterSet *whitespaceAndNewlineSet = [NSCharacterSet whitespaceAndNewlineCharacterSet]; + [tableDocumentInstance setQueryMode:SP_QUERYMODE_CUSTOMQUERY]; // Notify listeners that a query has started [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryWillBePerformed" object:self]; @@ -573,6 +574,8 @@ // Restore automatic query retries [mySQLConnection setAllowQueryRetries:YES]; + + [tableDocumentInstance setQueryMode:SP_QUERYMODE_INTERFACE]; // If no results were returned, redraw the empty table and post notifications before returning. if ( ![fullResult count] ) { |