Commit b355c2e9 authored by jani@prima.mysql.com's avatar jani@prima.mysql.com

Small change in mysql.cc

parent c3730a53
......@@ -780,16 +780,14 @@ static int read_lines(bool execute_commands)
" '> " : " \"> ");
linebuffer[0]=(char) sizeof(linebuffer);
line=_cgets(linebuffer);
if (opt_outfile)
fprintf(OUTFILE, "%s\n", line);
#else
line=readline((char*) (glob_buffer.is_empty() ? "mysql> " :
!in_string ? " -> " :
in_string == '\'' ?
" '> " : " \"> "));
#endif
if (opt_outfile)
fprintf(OUTFILE, "%s\n", line);
#endif
}
if (!line) // End of file
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment