Commit 673f67f6 authored by jani@dsl-jkl1657.dial.inet.fi's avatar jani@dsl-jkl1657.dial.inet.fi
Browse files

Fixed a bug in mysql client.

parent f587e985
Loading
Loading
Loading
Loading
+112 −108
Original line number Diff line number Diff line
@@ -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|",