[CP] fix bug insert on duplicate key update with unexpected error_no 5024
This commit is contained in:
parent
db7a7afe45
commit
88dad848e0
@ -5143,7 +5143,8 @@ int ObCodeGeneratorImpl::convert_multi_table_insert_up_info(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (OB_SUCC(ret) && !index_dml_info.assignments_.empty()) {
|
||||
if (OB_SUCC(ret)) {
|
||||
// must generate insert and delete subplan for all data_table and global index_table, for multi_insert_up
|
||||
// delete subplan will be produced by update operation of insert_up
|
||||
// so if assignments is empty, it indicates no need to generate delete subplan
|
||||
OZ(convert_delete_subplan(op, index_dml_info, update_row_desc, subplans.at(ObMultiTableInsertUp::DELETE_OP)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user