disable foreign_key_checks in oracle mode
This commit is contained in:
@ -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 ;
|
||||||
|
|||||||
@ -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": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user