fix last insert id when using batch
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user