Commit 35652ed6 authored by Thirunarayanan Balathandayuthapani's avatar Thirunarayanan Balathandayuthapani Committed by Marko Mäkelä

Bug#25222337 FIELD NAME IS NULL IN NEWLY ADDED VIRTUAL INDEX FOR NEWLY ADDED VIRTUAL COLUMN

Analysis:
========
Field name comparison happens while filling the virtual columns
affected by foreign constraint. But field name is NULL in virtual
index for the newly added virtual column.

Fix:
===
Ignore the index if it has newly added virtual column. Foreign
key affected virtual column information is filled during
loading operation.
Reviewed-by: default avatarJimmy Yang <jimmy.yang@oracle.com>
RB: 14895
parent 49edf2d4
......@@ -810,7 +810,12 @@ dict_mem_fill_vcol_from_v_indexes(
index;
index = dict_table_get_next_index(index)) {
if (!dict_index_has_virtual(index)) {
/* Skip if the index have newly added
virtual column because field name is NULL.
Later virtual column set will be
refreshed during loading of table. */
if (!dict_index_has_virtual(index)
|| index->has_new_v_col) {
continue;
}
......
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