From 7dc31480deeba1d722bd9701921d3f042c3e7f51 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 15 Mar 2005 17:33:06 -0800 Subject: [PATCH] Change mysql prompt while inside a multiline comment. (Bug #9186) client/mysql.cc: Change prompt to "/*> " when inside a multiline comment. --- client/mysql.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 == '`' ?