summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-03-15 17:33:06 -0800
committerunknown <jimw@mysql.com>2005-03-15 17:33:06 -0800
commit7dc31480deeba1d722bd9701921d3f042c3e7f51 (patch)
treee04fa29657622f292cb8a9b389cb5b981b684bdd /client
parente656fba7788dcb42c2c74a6f5a575f28e284aa03 (diff)
downloadmariadb-git-7dc31480deeba1d722bd9701921d3f042c3e7f51.tar.gz
Change mysql prompt while inside a multiline comment. (Bug #9186)
client/mysql.cc: Change prompt to "/*> " when inside a multiline comment.
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 46bfc7d880f..39d970da629 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -936,7 +936,8 @@ static int read_lines(bool execute_commands)
}
else
{
- char *prompt= (char*) (glob_buffer.is_empty() ? construct_prompt() :
+ char *prompt= (char*) (ml_comment ? " /*> " :
+ glob_buffer.is_empty() ? construct_prompt() :
!in_string ? " -> " :
in_string == '\'' ?
" '> " : (in_string == '`' ?