提交 88dad848 编写于 作者: Y yishenglanlingzui 提交者: wangzelin.wzl

[CP] fix bug insert on duplicate key update with unexpected error_no 5024

上级 db7a7afe
......@@ -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)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册