Commit 1afb1704 authored by Monty's avatar Monty

Fixed bugs found by mysql-test-run:

- privilege_table_io.test didn't properly reset roles_mapping
- Fixed memory allocation problem with CHECK CONSTRAINT, found when
  running --valgrind main.check_constraint
parent ed008a74
...@@ -15,6 +15,7 @@ optimize table mysql.proxies_priv; ...@@ -15,6 +15,7 @@ optimize table mysql.proxies_priv;
optimize table mysql.tables_priv; optimize table mysql.tables_priv;
optimize table mysql.procs_priv; optimize table mysql.procs_priv;
optimize table mysql.servers; optimize table mysql.servers;
optimize table mysql.roles_mapping;
update performance_schema.setup_consumers set enabled='YES'; update performance_schema.setup_consumers set enabled='YES';
update performance_schema.setup_objects set enabled='YES' update performance_schema.setup_objects set enabled='YES'
where object_type='TABLE' and object_schema= 'mysql'; where object_type='TABLE' and object_schema= 'mysql';
......
...@@ -24,6 +24,7 @@ optimize table mysql.proxies_priv; ...@@ -24,6 +24,7 @@ optimize table mysql.proxies_priv;
optimize table mysql.tables_priv; optimize table mysql.tables_priv;
optimize table mysql.procs_priv; optimize table mysql.procs_priv;
optimize table mysql.servers; optimize table mysql.servers;
optimize table mysql.roles_mapping;
--enable_result_log --enable_result_log
# Start recording events # Start recording events
......
...@@ -3110,7 +3110,8 @@ enum open_frm_error open_table_from_share(THD *thd, TABLE_SHARE *share, ...@@ -3110,7 +3110,8 @@ enum open_frm_error open_table_from_share(THD *thd, TABLE_SHARE *share,
share->default_expressions +1)* share->default_expressions +1)*
sizeof(Field*)), sizeof(Field*)),
&check_constraint_ptr, &check_constraint_ptr,
(uint) ((share->table_check_constraints + 1)* (uint) ((share->table_check_constraints +
share->field_check_constraints + 1)*
sizeof(Virtual_column_info*)), sizeof(Virtual_column_info*)),
NullS)) NullS))
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment