support oms ncharacter_set_connection
This commit is contained in:
@ -3305,13 +3305,31 @@ static struct VarsInit{
|
||||
ObSysVars[233].alias_ = "OB_SV__OB_PROXY_WEAKREAD_FEEDBACK" ;
|
||||
}();
|
||||
|
||||
[&] (){
|
||||
ObSysVars[234].default_value_ = "0" ;
|
||||
ObSysVars[234].info_ = "The national character set which should be translated to after receiving the statement" ;
|
||||
ObSysVars[234].name_ = "ncharacter_set_connection" ;
|
||||
ObSysVars[234].data_type_ = ObIntType ;
|
||||
ObSysVars[234].to_show_str_func_ = "ObSysVarToStrFuncs::to_str_charset" ;
|
||||
ObSysVars[234].flags_ = ObSysVarFlag::SESSION_SCOPE | ObSysVarFlag::NEED_SERIALIZE | ObSysVarFlag::INVISIBLE | ObSysVarFlag::NULLABLE ;
|
||||
ObSysVars[234].base_class_ = "ObCharsetSysVar" ;
|
||||
ObSysVars[234].to_select_obj_func_ = "ObSysVarToObjFuncs::to_obj_charset" ;
|
||||
ObSysVars[234].on_check_and_convert_func_ = "ObSysVarOnCheckFuncs::check_and_convert_charset" ;
|
||||
ObSysVars[234].id_ = SYS_VAR_NCHARACTER_SET_CONNECTION ;
|
||||
cur_max_var_id = MAX(cur_max_var_id, static_cast<int64_t>(SYS_VAR_NCHARACTER_SET_CONNECTION)) ;
|
||||
ObSysVarsIdToArrayIdx[SYS_VAR_NCHARACTER_SET_CONNECTION] = 234 ;
|
||||
ObSysVars[234].get_meta_type_func_ = "ObSysVarGetMetaTypeFuncs::get_meta_type_varchar" ;
|
||||
ObSysVars[234].base_value_ = "0" ;
|
||||
ObSysVars[234].alias_ = "OB_SV_NCHARACTER_SET_CONNECTION" ;
|
||||
}();
|
||||
|
||||
if (cur_max_var_id >= ObSysVarFactory::OB_MAX_SYS_VAR_ID) {
|
||||
HasInvalidSysVar = true;
|
||||
}
|
||||
}
|
||||
}vars_init;
|
||||
|
||||
static int64_t var_amount = 234;
|
||||
static int64_t var_amount = 235;
|
||||
|
||||
int64_t ObSysVariables::get_all_sys_var_count(){ return ObSysVarFactory::ALL_SYS_VARS_COUNT;}
|
||||
ObSysVarClassType ObSysVariables::get_sys_var_id(int64_t i){ return ObSysVars[i].id_;}
|
||||
|
||||
Reference in New Issue
Block a user