1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fixed bug in mysql client.

client/mysql.cc:
  Fixed buf with the batch mode.
This commit is contained in:
unknown
2000-11-17 21:36:47 +02:00
parent 19fc413aa2
commit 59d2c0df50

View File

@@ -437,7 +437,7 @@ CHANGEABLE_VAR changeable_vars[] = {
static void usage(int version) 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); my_progname, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE);
if (version) if (version)
return; return;
@@ -764,6 +764,7 @@ static int read_lines(bool execute_commands)
line=_cgets(linebuffer); line=_cgets(linebuffer);
} }
#else #else
{
if (opt_outfile) if (opt_outfile)
{ {
if (glob_buffer.is_empty()) if (glob_buffer.is_empty())
@@ -779,6 +780,7 @@ static int read_lines(bool execute_commands)
" '> " : " \"> ")); " '> " : " \"> "));
if (opt_outfile) if (opt_outfile)
fprintf(OUTFILE, "%s\n", line); fprintf(OUTFILE, "%s\n", line);
}
#endif #endif
if (!line) // End of file if (!line) // End of file
{ {