Loading client/mysqldump.c +18 −18 Original line number Diff line number Diff line Loading @@ -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) Loading @@ -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); Loading @@ -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) Loading extra/perror.c +8 −6 Original line number Diff line number Diff line Loading @@ -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++) { Loading innobase/include/univ.i +0 −4 Original line number Diff line number Diff line Loading @@ -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 Loading mysql-test/r/compare.result +3 −0 Original line number Diff line number Diff line Loading @@ -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 mysql-test/t/compare.test +2 −0 Original line number Diff line number Diff line Loading @@ -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
client/mysqldump.c +18 −18 Original line number Diff line number Diff line Loading @@ -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) Loading @@ -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); Loading @@ -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) Loading
extra/perror.c +8 −6 Original line number Diff line number Diff line Loading @@ -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++) { Loading
innobase/include/univ.i +0 −4 Original line number Diff line number Diff line Loading @@ -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 Loading
mysql-test/r/compare.result +3 −0 Original line number Diff line number Diff line Loading @@ -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
mysql-test/t/compare.test +2 −0 Original line number Diff line number Diff line Loading @@ -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);