summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storage/innobase/handler/handler0alter.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/innobase/handler/handler0alter.cc b/storage/innobase/handler/handler0alter.cc
index 1f6dbe1eda9..3ac4f4fe4c1 100644
--- a/storage/innobase/handler/handler0alter.cc
+++ b/storage/innobase/handler/handler0alter.cc
@@ -296,10 +296,9 @@ struct ha_innobase_inplace_ctx : public inplace_alter_handler_ctx
continue;
dict_v_col_t *drop_vcol= index->new_vcol_info->
- add_drop_v_col(index->heap, vcol, n_drop_new_vcol);
+ add_drop_v_col(index->heap, vcol, --n_drop_new_vcol);
/* Re-assign the index field with newly stored virtual column */
index->fields[i].col= reinterpret_cast<dict_col_t*>(drop_vcol);
- n_drop_new_vcol--;
}
}
}