Change mysql prompt while inside a multiline comment. (Bug #9186)

client/mysql.cc:
  Change prompt to "/*> " when inside a multiline comment.
This commit is contained in:
unknown 2005-03-15 17:33:06 -08:00
parent e656fba778
commit 7dc31480de

View file

@ -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 == '`' ?