disable foreign_key_checks in oracle mode

This commit is contained in:
jingtaoye35
2023-11-14 08:10:44 +00:00
committed by ob-robot
parent 9eb17fa1e9
commit 998e8d1a1a
2 changed files with 2 additions and 2 deletions

View File

@ -1852,7 +1852,7 @@ static struct VarsInit{
ObSysVars[127].info_ = "set to 1 (the default by MySQL), foreign key constraints are checked. If set to 0, foreign key constraints are ignored" ; ObSysVars[127].info_ = "set to 1 (the default by MySQL), foreign key constraints are checked. If set to 0, foreign key constraints are ignored" ;
ObSysVars[127].name_ = "foreign_key_checks" ; ObSysVars[127].name_ = "foreign_key_checks" ;
ObSysVars[127].data_type_ = ObIntType ; ObSysVars[127].data_type_ = ObIntType ;
ObSysVars[127].flags_ = ObSysVarFlag::GLOBAL_SCOPE | ObSysVarFlag::SESSION_SCOPE | ObSysVarFlag::NEED_SERIALIZE ; ObSysVars[127].flags_ = ObSysVarFlag::GLOBAL_SCOPE | ObSysVarFlag::SESSION_SCOPE | ObSysVarFlag::NEED_SERIALIZE | ObSysVarFlag::MYSQL_ONLY ;
ObSysVars[127].id_ = SYS_VAR_FOREIGN_KEY_CHECKS ; ObSysVars[127].id_ = SYS_VAR_FOREIGN_KEY_CHECKS ;
cur_max_var_id = MAX(cur_max_var_id, static_cast<int64_t>(SYS_VAR_FOREIGN_KEY_CHECKS)) ; cur_max_var_id = MAX(cur_max_var_id, static_cast<int64_t>(SYS_VAR_FOREIGN_KEY_CHECKS)) ;
ObSysVarsIdToArrayIdx[SYS_VAR_FOREIGN_KEY_CHECKS] = 127 ; ObSysVarsIdToArrayIdx[SYS_VAR_FOREIGN_KEY_CHECKS] = 127 ;

View File

@ -1841,7 +1841,7 @@
"base_value": "1", "base_value": "1",
"data_type": "bool", "data_type": "bool",
"info": "set to 1 (the default by MySQL), foreign key constraints are checked. If set to 0, foreign key constraints are ignored", "info": "set to 1 (the default by MySQL), foreign key constraints are checked. If set to 0, foreign key constraints are ignored",
"flags": "GLOBAL | SESSION | NEED_SERIALIZE", "flags": "GLOBAL | SESSION | NEED_SERIALIZE | MYSQL_ONLY",
"publish_version": "", "publish_version": "",
"info_cn": "", "info_cn": "",
"background_cn": "", "background_cn": "",