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

Fixed a bug in mysql client.

client/mysql.cc:
  Fixed a bug in option -N
This commit is contained in:
unknown
2002-05-31 15:43:21 +03:00
parent 79efd9dbaa
commit b379016d88

View File

@@ -40,7 +40,7 @@
#include <signal.h>
#include <violite.h>
const char *VER= "12.9";
const char *VER= "12.10";
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
@@ -645,6 +645,9 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
case 'A':
rehash= 0;
break;
case 'N':
column_names= 0;
break;
case 'e':
status.batch= 1;
status.add_to_history= 0;
@@ -1608,7 +1611,8 @@ print_table_data(MYSQL_RES *result)
uint length= field->max_length;
if (length > MAX_COLUMN_LENGTH)
{
tee_fputs(str,PAGER); tee_fputs(" |",PAGER);
tee_fputs(str, PAGER);
tee_fputs(" |", PAGER);
}
else
tee_fprintf(PAGER, num_flag[off] ? "%*s |" : " %-*s|",