fix last insert id when using batch

This commit is contained in:
Azipro
2024-07-16 11:48:45 +00:00
committed by ob-robot
parent a5da343aec
commit e30efac083
8 changed files with 24 additions and 4 deletions

View File

@ -3698,7 +3698,8 @@ OB_SERIALIZE_MEMBER(ObImplicitCursorInfo,
found_rows_,
matched_rows_,
duplicated_rows_,
deleted_rows_);
deleted_rows_,
last_insert_id_);
int ObImplicitCursorInfo::merge_cursor(const ObImplicitCursorInfo &other)
{
@ -3715,6 +3716,7 @@ int ObImplicitCursorInfo::merge_cursor(const ObImplicitCursorInfo &other)
matched_rows_ += other.matched_rows_;
duplicated_rows_ += other.duplicated_rows_;
deleted_rows_ += other.deleted_rows_;
last_insert_id_ = other.last_insert_id_;
}
return ret;
}