Commit c5cf7f43 authored by jani@prima.mysql.com's avatar jani@prima.mysql.com
Browse files

Fixed bug in mysql client.

parent 19a9f8f9
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
@@ -437,7 +437,7 @@ CHANGEABLE_VAR changeable_vars[] = {

static void usage(int version)
{
  printf("%s  Ver 11.2 Distrib %s, for %s (%s)\n",
  printf("%s  Ver 11.3 Distrib %s, for %s (%s)\n",
	 my_progname, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE);
  if (version)
    return;
@@ -764,6 +764,7 @@ static int read_lines(bool execute_commands)
      line=_cgets(linebuffer);
    }
#else
    {
      if (opt_outfile)
      {
	if (glob_buffer.is_empty())
@@ -779,6 +780,7 @@ static int read_lines(bool execute_commands)
			     "    '> " : "    \"> "));
      if (opt_outfile)
	fprintf(OUTFILE, "%s\n", line);
    }
#endif
    if (!line)					// End of file
    {