Commit f14ed95b authored by Marko Mäkelä's avatar Marko Mäkelä

Skip instant ADD COLUMN on ROW_FORMAT=COMPRESSED tables

The ROW_FORMAT=COMPRESSED page format cannot be changed easily.
The schema is pretty much hard-coded.
parent 44084346
...@@ -5298,7 +5298,7 @@ prepare_inplace_alter_table_dict( ...@@ -5298,7 +5298,7 @@ prepare_inplace_alter_table_dict(
error = DB_OUT_OF_MEMORY; error = DB_OUT_OF_MEMORY;
goto error_handling;); goto error_handling;);
if (ctx->need_rebuild()) { if (ctx->need_rebuild() && ctx->new_table->supports_instant()) {
if (~ha_alter_info->handler_flags if (~ha_alter_info->handler_flags
& Alter_inplace_info::ADD_STORED_BASE_COLUMN) { & Alter_inplace_info::ADD_STORED_BASE_COLUMN) {
goto not_instant_add_column; goto not_instant_add_column;
......
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