diff options
author | stuconnolly <stuart02@gmail.com> | 2009-04-22 16:28:17 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-04-22 16:28:17 +0000 |
commit | cdfc70cbf55acb5c3bcd1ed459367008f9935c04 (patch) | |
tree | dd3d03678f397713eaa0ae33c9ec320def3a08a9 /Source/SPQueryConsole.m | |
parent | 8be8b3c61449336882a7af87c6d328399006797f (diff) | |
download | sequelpro-cdfc70cbf55acb5c3bcd1ed459367008f9935c04.tar.gz sequelpro-cdfc70cbf55acb5c3bcd1ed459367008f9935c04.tar.bz2 sequelpro-cdfc70cbf55acb5c3bcd1ed459367008f9935c04.zip |
Fix for issue #238. Convert the console message to uppercase when performing the SELECT/SHOW prefix check.
Diffstat (limited to 'Source/SPQueryConsole.m')
-rw-r--r-- | Source/SPQueryConsole.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m index 63fbee18..bac258c9 100644 --- a/Source/SPQueryConsole.m +++ b/Source/SPQueryConsole.m @@ -479,7 +479,7 @@ static SPQueryConsole *sharedQueryConsole = nil; * and whether it should be hidden if the SELECT/SHOW toggle is off. */ - (BOOL)_messageMatchesCurrentFilters:(NSString *)message -{ +{ BOOL messageMatchesCurrentFilters = YES; // Check whether to hide the message based on the current filter text, if any @@ -492,7 +492,7 @@ static SPQueryConsole *sharedQueryConsole = nil; // If hiding SELECTs and SHOWs is toggled to on, check whether the message is a SELECT or SHOW if (messageMatchesCurrentFilters && showSelectStatementsAreDisabled - && ([message hasPrefix:@"SELECT"] || [message hasPrefix:@"SHOW"])) + && ([[message uppercaseString] hasPrefix:@"SELECT"] || [[message uppercaseString] hasPrefix:@"SHOW"])) { messageMatchesCurrentFilters = NO; } |