[CP] [to #48934936] fix set_autocommit of session info
This commit is contained in:
@ -3442,9 +3442,10 @@ int ObBasicSessionInfo::is_select_index_enabled(bool &select_index_enabled) cons
|
||||
return get_bool_sys_var(SYS_VAR_OB_ENABLE_INDEX_DIRECT_SELECT, select_index_enabled);
|
||||
}
|
||||
|
||||
void ObBasicSessionInfo::set_autocommit(bool autocommit)
|
||||
int ObBasicSessionInfo::set_autocommit(bool autocommit)
|
||||
{
|
||||
sys_vars_cache_.set_autocommit(autocommit);
|
||||
return sys_var_inc_info_.add_sys_var_id(SYS_VAR_AUTOCOMMIT);
|
||||
}
|
||||
|
||||
int ObBasicSessionInfo::get_explicit_defaults_for_timestamp(
|
||||
|
||||
@ -480,7 +480,7 @@ public:
|
||||
uint64_t get_login_tenant_id() const { return tenant_id_; }
|
||||
void set_login_tenant_id(uint64_t tenant_id) { tenant_id_ = tenant_id; }
|
||||
bool is_tenant_changed() const { return tenant_id_ != effective_tenant_id_; }
|
||||
void set_autocommit(bool autocommit);
|
||||
int set_autocommit(bool autocommit);
|
||||
int get_autocommit(bool &autocommit) const
|
||||
{
|
||||
autocommit = sys_vars_cache_.get_autocommit();
|
||||
|
||||
Reference in New Issue
Block a user