We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 904aabf commit 1166887Copy full SHA for 1166887
storage/innobase/row/row0ins.cc
@@ -1180,10 +1180,15 @@ row_ins_foreign_check_on_constraint(
1180
1181
for (i = 0; i < foreign->n_fields; i++) {
1182
upd_field_t* ufield = &update->fields[i];
1183
+ ulint col_no = dict_index_get_nth_col_no(
1184
+ index, i);
1185
1186
ufield->field_no = dict_table_get_nth_col_pos(
- table,
- dict_index_get_nth_col_no(index, i));
1187
+ table, col_no);
1188
+ dict_col_t* col = dict_table_get_nth_col(
1189
1190
+ dict_col_copy_type(col, dfield_get_type(&ufield->new_val));
1191
+
1192
ufield->orig_len = 0;
1193
ufield->exp = NULL;
1194
dfield_set_null(&ufield->new_val);
0 commit comments