Commit c7ea0ab1 authored by unknown's avatar unknown

Small change in mysql.cc


client/mysql.cc:
  Small change in code, not even a bug fix.
parent 07f78e03
...@@ -780,16 +780,14 @@ static int read_lines(bool execute_commands) ...@@ -780,16 +780,14 @@ static int read_lines(bool execute_commands)
" '> " : " \"> "); " '> " : " \"> ");
linebuffer[0]=(char) sizeof(linebuffer); linebuffer[0]=(char) sizeof(linebuffer);
line=_cgets(linebuffer); line=_cgets(linebuffer);
if (opt_outfile)
fprintf(OUTFILE, "%s\n", line);
#else #else
line=readline((char*) (glob_buffer.is_empty() ? "mysql> " : line=readline((char*) (glob_buffer.is_empty() ? "mysql> " :
!in_string ? " -> " : !in_string ? " -> " :
in_string == '\'' ? in_string == '\'' ?
" '> " : " \"> ")); " '> " : " \"> "));
#endif
if (opt_outfile) if (opt_outfile)
fprintf(OUTFILE, "%s\n", line); fprintf(OUTFILE, "%s\n", line);
#endif
} }
if (!line) // End of file 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