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/SPConsoleMessage.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/SPConsoleMessage.m')
-rw-r--r-- | Source/SPConsoleMessage.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPConsoleMessage.m b/Source/SPConsoleMessage.m index 0a5c2bcf..6ada323a 100644 --- a/Source/SPConsoleMessage.m +++ b/Source/SPConsoleMessage.m @@ -35,24 +35,26 @@ @synthesize isError; @synthesize messageDate; @synthesize message; +@synthesize messageDatabase; @synthesize messageConnection; /** * Returns a new console message instance using the suppled message, date and connection. */ -+ (SPConsoleMessage *)consoleMessageWithMessage:(NSString *)message date:(NSDate *)date connection:(NSString *)connection ++ (SPConsoleMessage *)consoleMessageWithMessage:(NSString *)message date:(NSDate *)date connection:(NSString *)connection database:(NSString *)database { - return [[[SPConsoleMessage alloc] initWithMessage:message date:date connection:connection] autorelease]; + return [[[SPConsoleMessage alloc] initWithMessage:message date:date connection:connection database:database] autorelease]; } /** * Initializes a new console message instance using the suppled message, date and connection. */ -- (id)initWithMessage:(NSString *)consoleMessage date:(NSDate *)date connection:(NSString *)connection +- (id)initWithMessage:(NSString *)consoleMessage date:(NSDate *)date connection:(NSString *)connection database:(NSString *)database { if ((self = [super init])) { [self setMessageDate:date]; [self setMessage:consoleMessage]; + [self setMessageDatabase:database]; [self setMessageConnection:connection]; } @@ -65,6 +67,7 @@ { [message release], message = nil; [messageDate release], messageDate = nil; + [messageDatabase release], messageDatabase = nil; [messageConnection release], messageConnection = nil; [super dealloc]; |