Land #18979, Remove empty () when no DB selected for sql session prompts
This commit is contained in:
commit
1216bf1904
|
@ -92,7 +92,7 @@ module Rex
|
|||
#
|
||||
# @return [String]
|
||||
def sql_prompt
|
||||
"#{session.type} @ #{client.peerinfo} (#{current_database})"
|
||||
"#{session.type} @ #{client.peerinfo}#{current_database.blank? ? '' : " (#{current_database})"}"
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue