Skip to content

Commit 2a68e04

Browse files
committed
Update help message
1 parent 6043105 commit 2a68e04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rex/post/sql/ui/console/command_dispatcher/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def query_interactive_help
7171
print_line 'Interactive SQL prompt'
7272
print_line
7373
print_line 'You are in an interactive SQL shell where SQL queries can be executed.'
74+
print_line 'SQL commands ending with ; will be executed on the remote server.'
7475
print_line "To exit, type 'exit', 'quit', 'end' or 'stop'."
7576
print_line
7677
end

lib/rex/post/sql/ui/console/interactive_sql_client.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ def _multiline
114114
help = help_words.include?(multiline_input.split.last)
115115
end
116116

117-
finished || multiline_input.split.last&.end_with?(';')
118-
help || multiline_input.split.last&.end_with?(';')
117+
finished || help || multiline_input.split.last&.end_with?(';')
119118
end
120119
rescue ::StandardError => e
121120
elog('Failed to get multi-line SQL query from user', e)

0 commit comments

Comments
 (0)