mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge with 5.1
Fixed valgrind warnings found from running main.connect under valgrind sql/sp_head.cc: Ensure that vcol_info is reset sql/sql_acl.cc: Fixed usage of wrong memroot for password sql/sql_yacc.yy: Ensure that vcol_info is reset
This commit is contained in:
@@ -5704,6 +5704,10 @@ compare_tables(TABLE *table,
|
||||
*/
|
||||
Alter_info tmp_alter_info(*alter_info, thd->mem_root);
|
||||
uint db_options= 0; /* not used */
|
||||
|
||||
/* Set default value for return value (to ensure it's always set) */
|
||||
*need_copy_table= ALTER_TABLE_DATA_CHANGED;
|
||||
|
||||
/* Create the prepared information. */
|
||||
if (mysql_prepare_create_table(thd, create_info,
|
||||
&tmp_alter_info,
|
||||
@@ -5762,7 +5766,6 @@ compare_tables(TABLE *table,
|
||||
(table->s->frm_version < FRM_VER_TRUE_VARCHAR && varchar))
|
||||
{
|
||||
DBUG_PRINT("info", ("Basic checks -> ALTER_TABLE_DATA_CHANGED"));
|
||||
*need_copy_table= ALTER_TABLE_DATA_CHANGED;
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
@@ -5792,7 +5795,6 @@ compare_tables(TABLE *table,
|
||||
{
|
||||
DBUG_PRINT("info", ("NULL behaviour difference in field '%s' -> "
|
||||
"ALTER_TABLE_DATA_CHANGED", new_field->field_name));
|
||||
*need_copy_table= ALTER_TABLE_DATA_CHANGED;
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
@@ -5828,7 +5830,6 @@ compare_tables(TABLE *table,
|
||||
{
|
||||
DBUG_PRINT("info", ("!field_is_equal('%s') -> ALTER_TABLE_DATA_CHANGED",
|
||||
new_field->field_name));
|
||||
*need_copy_table= ALTER_TABLE_DATA_CHANGED;
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
// Clear indexed marker
|
||||
@@ -5963,7 +5964,6 @@ compare_tables(TABLE *table,
|
||||
{
|
||||
DBUG_PRINT("info", ("check_if_incompatible_data() -> "
|
||||
"ALTER_TABLE_DATA_CHANGED"));
|
||||
*need_copy_table= ALTER_TABLE_DATA_CHANGED;
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user