mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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:
@@ -936,7 +936,8 @@ static int read_lines(bool execute_commands)
|
|||||||
}
|
}
|
||||||
else
|
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 == '\'' ?
|
in_string == '\'' ?
|
||||||
" '> " : (in_string == '`' ?
|
" '> " : (in_string == '`' ?
|
||||||
|
Reference in New Issue
Block a user