diff options
author | unknown <jani@rhols221.adsl.netsonic.fi> | 2003-09-17 21:41:36 +0300 |
---|---|---|
committer | unknown <jani@rhols221.adsl.netsonic.fi> | 2003-09-17 21:41:36 +0300 |
commit | 493726836cdb07b14d3f89b2dc65dc95f85f55e6 (patch) | |
tree | c2481a48a700a20364de09c882c3034469ff4274 /client | |
parent | 5df627d47303e114caead13abc8156af6c4d0016 (diff) | |
download | mariadb-git-493726836cdb07b14d3f89b2dc65dc95f85f55e6.tar.gz |
Fixed Bug#1291, client displays wrong prompt when in the middle of
backticks.
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 639e5f450ad..2fa131b854a 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -40,7 +40,7 @@ #include <signal.h> #include <violite.h> -const char *VER= "12.21"; +const char *VER= "12.22"; /* Don't try to make a nice table if the data is too big */ #define MAX_COLUMN_LENGTH 1024 @@ -801,7 +801,9 @@ static int read_lines(bool execute_commands) char *prompt= (char*) (glob_buffer.is_empty() ? construct_prompt() : !in_string ? " -> " : in_string == '\'' ? - " '> " : " \"> "); + " '> " : (in_string == '`' ? + " `> " : + " \"> ")); if (opt_outfile && glob_buffer.is_empty()) fflush(OUTFILE); |