Skip to content

Commit 273d5c9

Browse files
Bug#25222337 FIELD NAME IS NULL IN NEWLY ADDED VIRTUAL INDEX
FOR NEWLY ADDED VIRTUAL COLUMN Merge branch 'mysql-5.7' into mysql-trunk
2 parents 1e8af97 + 5eba535 commit 273d5c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

storage/innobase/dict/dict0mem.cc

+6-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,12 @@ dict_mem_fill_vcol_from_v_indexes(
509509
index != NULL;
510510
index = index->next()) {
511511

512-
if (!dict_index_has_virtual(index)) {
512+
/* Skip if the index have newly added
513+
virtual column because field name is NULL.
514+
Later virtual column set will be
515+
refreshed during loading of table. */
516+
if (!dict_index_has_virtual(index)
517+
|| index->has_new_v_col) {
513518
continue;
514519
}
515520

0 commit comments

Comments
 (0)