[CP] [to #52362326] Save the current execution state to DAS ctx

This commit is contained in:
obdev
2023-09-25 09:14:07 +00:00
committed by ob-robot
parent 1126fa4e50
commit 119e6cbf24
2 changed files with 9 additions and 0 deletions

View File

@ -558,6 +558,9 @@ inline void ObResultSet::set_message(const char *message)
inline void ObResultSet::set_errcode(int code)
{
errcode_ = code;
//Save the current execution state to determine whether to refresh location
//and perform other necessary cleanup operations when the statement exits.
DAS_CTX(get_exec_context()).get_location_router().save_cur_exec_status(code);
}
inline int ObResultSet::add_field_column(const common::ObField &field)