diff options
author | Stuart Connolly <stuart02@gmail.com> | 2014-08-28 19:08:14 +0100 |
---|---|---|
committer | Stuart Connolly <stuart02@gmail.com> | 2014-08-28 19:08:14 +0100 |
commit | 310fb079c75d551bf2a129b69c897905ca83e061 (patch) | |
tree | ae163e957f6e43c49fef9014a96f8cab7b99cbfa /Source/SPQueryConsoleDataSource.m | |
parent | e3c342d623b24a55215fadb3b7c72f80df303e83 (diff) | |
download | sequelpro-310fb079c75d551bf2a129b69c897905ca83e061.tar.gz sequelpro-310fb079c75d551bf2a129b69c897905ca83e061.tar.bz2 sequelpro-310fb079c75d551bf2a129b69c897905ca83e061.zip |
Resolve #1938: In the query console display the database the query was executed in.
Diffstat (limited to 'Source/SPQueryConsoleDataSource.m')
-rw-r--r-- | Source/SPQueryConsoleDataSource.m | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/SPQueryConsoleDataSource.m b/Source/SPQueryConsoleDataSource.m index 343f2dcd..eaac2151 100644 --- a/Source/SPQueryConsoleDataSource.m +++ b/Source/SPQueryConsoleDataSource.m @@ -54,8 +54,12 @@ static NSUInteger SPMessageTruncateCharacterLength = 256; { #ifndef SP_CODA NSString *returnValue = nil; + + NSString *identifier = [tableColumn identifier]; + + if (!identifier) return returnValue; - id object = [[messagesVisibleSet objectAtIndex:row] valueForKey:[tableColumn identifier]]; + id object = [[messagesVisibleSet objectAtIndex:row] valueForKey:identifier]; if ([[tableColumn identifier] isEqualToString:SPTableViewDateColumnID]) { @@ -68,7 +72,9 @@ static NSUInteger SPMessageTruncateCharacterLength = 256; returnValue = object; } - + + if (!returnValue) return returnValue; + NSMutableDictionary *stringAtributes = nil; if (consoleFont) { |