Commit f49910d3 authored by unknown's avatar unknown
Browse files

Merge jlindstrom@bk-internal.mysql.com:/home/bk/mysql-4.1

into hundin.mysql.fi:/home/jan/mysql-4.1

parents e63fdaf2 4bb1c716
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1002,3 +1002,5 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslserver
vio/viotest-ssl
tests/mysql_client_test
tests/mysql_client_test
+3 −10
Original line number Diff line number Diff line
@@ -1430,12 +1430,6 @@ static void build_completion_hash(bool rehash, bool write_info)
  if (status.batch || quick || !current_db)
    DBUG_VOID_RETURN;			// We don't need completion in batches

  if (tables)
  {
    mysql_free_result(tables);
    tables=0;
  }

  /* hash SQL commands */
  while (cmd->name) {
    add_word(&ht,(char*) cmd->name);
@@ -1681,7 +1675,7 @@ static int com_server_help(String *buffer __attribute__((unused)),
    else if (num_fields >= 2 && num_rows)
    {
      init_pager();
      char last_char;
      char last_char= 0;

      int num_name= 0, num_cat= 0;
      LINT_INIT(num_name);
@@ -1693,7 +1687,6 @@ static int com_server_help(String *buffer __attribute__((unused)),
	put_info("To make a more specific request, please type 'help <item>',\nwhere <item> is one of the following", INFO_INFO);
	num_name= 0;
	num_cat= 1;
	last_char= '_';
      }
      else if ((cur= mysql_fetch_row(result)))
      {
+1 −5
Original line number Diff line number Diff line
@@ -717,11 +717,7 @@ static int check_master_version(MYSQL* mysql)

  if (mysql_query(mysql, "SELECT VERSION()") ||
      !(res = mysql_store_result(mysql)))
  {
    mysql_close(mysql);
    die("Error checking master version: %s",
		    mysql_error(mysql));
  }
    die("Error checking master version: %s", mysql_error(mysql));
  if (!(row = mysql_fetch_row(res)))
  {
    mysql_free_result(res);
+2 −3
Original line number Diff line number Diff line
@@ -2328,7 +2328,6 @@ static const char *check_if_ignore_table(const char *table_name)
    fprintf(stderr,
	    "Error: Couldn't read status information for table %s (%s)\n",
	    table_name, mysql_error(sock));
    if (res)
    mysql_free_result(res);
    return 0;					/* assume table is ok */
  }
+3 −2
Original line number Diff line number Diff line
@@ -715,9 +715,10 @@ VAR* var_get(const char* var_name, const char** var_name_end, my_bool raw,
      die("Empty variable");
    }
    length= (uint) (var_name - save_var_name);
    if (length >= MAX_VAR_NAME)
      die("Too long variable name: %s", save_var_name);

    if (!(v = (VAR*) hash_search(&var_hash, save_var_name, length)) &&
        length < MAX_VAR_NAME)
    if (!(v = (VAR*) hash_search(&var_hash, save_var_name, length)))
    {
      char buff[MAX_VAR_NAME+1];
      strmake(buff, save_var_name, length);
Loading