aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryConsoleDataSource.m
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2014-08-28 19:08:14 +0100
committerStuart Connolly <stuart02@gmail.com>2014-08-28 19:08:14 +0100
commit310fb079c75d551bf2a129b69c897905ca83e061 (patch)
treeae163e957f6e43c49fef9014a96f8cab7b99cbfa /Source/SPQueryConsoleDataSource.m
parente3c342d623b24a55215fadb3b7c72f80df303e83 (diff)
downloadsequelpro-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.m10
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) {