summaryrefslogtreecommitdiff
path: root/storage/innobase/handler/handler0alter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/handler/handler0alter.cc')
-rw-r--r--storage/innobase/handler/handler0alter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/handler/handler0alter.cc b/storage/innobase/handler/handler0alter.cc
index 1f6dbe1eda9..f57b2c13fd7 100644
--- a/storage/innobase/handler/handler0alter.cc
+++ b/storage/innobase/handler/handler0alter.cc
@@ -296,7 +296,7 @@ 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 - 1);
/* 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--;