Commit c30ccbcd authored by unknown's avatar unknown
Browse files

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

into mysql.com:/home/my/mysql-4.1

parents 7116beb9 c95ce34e
Loading
Loading
Loading
Loading
+18 −18
Original line number Diff line number Diff line
@@ -2091,6 +2091,7 @@ static int dump_all_tables_in_db(char *database)
  RETURN
    void
*/

static void get_actual_table_name(const char *old_table_name, 
                                  char *new_table_name, 
                                  int buf_size)
@@ -2098,7 +2099,6 @@ static void get_actual_table_name( const char *old_table_name,
  MYSQL_RES  *tableRes;
  MYSQL_ROW  row;
  char query[ NAME_LEN + 50 ];

  DBUG_ENTER("get_actual_table_name");

  sprintf( query, "SHOW TABLES LIKE '%s'", old_table_name);
@@ -2109,9 +2109,9 @@ static void get_actual_table_name( const char *old_table_name,

  tableRes= mysql_store_result( sock );
  row= mysql_fetch_row( tableRes );
	strncpy( new_table_name, row[0], buf_size );
  strmake(new_table_name, row[0], buf_size-1);
  mysql_free_result(tableRes);
} /* get_actual_table_name */
}


static int dump_selected_tables(char *db, char **table_names, int tables)
+8 −6
Original line number Diff line number Diff line
@@ -215,10 +215,12 @@ int main(int argc,char *argv[])
    */
    msg= strerror(10000);

    /* allocate a buffer for unknown_error since strerror always returns the same pointer 
      on some platforms such as Windows */
    /*
      Allocate a buffer for unknown_error since strerror always returns
      the same pointer on some platforms such as Windows
    */
    unknown_error= malloc(strlen(msg)+1);
    strcpy( unknown_error, msg );
    strmov(unknown_error, msg);

    for ( ; argc-- > 0 ; argv++)
    {
+0 −4
Original line number Diff line number Diff line
@@ -80,10 +80,6 @@ memory is read outside the allocated blocks. */

/* Make a non-inline debug version */

#ifdef DBUG_ON
#define UNIV_DEBUG
#endif /* DBUG_ON */

/*
#define UNIV_DEBUG
#define UNIV_MEM_DEBUG
+3 −0
Original line number Diff line number Diff line
@@ -39,3 +39,6 @@ DROP TABLE t1;
SELECT CHAR(31) = '', '' = CHAR(31);
CHAR(31) = ''	'' = CHAR(31)
0	0
SELECT CHAR(30) = '', '' = CHAR(30);
CHAR(30) = ''	'' = CHAR(30)
0	0
+2 −0
Original line number Diff line number Diff line
@@ -33,3 +33,5 @@ DROP TABLE t1;

# Bug #8134: Comparison against CHAR(31) at end of string
SELECT CHAR(31) = '', '' = CHAR(31);
# Extra test
SELECT CHAR(30) = '', '' = CHAR(30);
Loading