support truncate fk parent table while foreign_key_checks is off

This commit is contained in:
obdev
2022-11-08 02:06:00 +00:00
committed by wangzelin.wzl
parent 1ae305f255
commit bc9a954129
6 changed files with 36 additions and 18 deletions

View File

@ -1461,7 +1461,8 @@ public:
database_name_(),
table_name_(),
is_add_to_scheduler_(false),
compat_mode_(lib::Worker::CompatMode::INVALID)
compat_mode_(lib::Worker::CompatMode::INVALID),
foreign_key_checks_(false)
{}
ObTruncateTableArg &operator=(const ObTruncateTableArg &other) = delete;
@ -1475,6 +1476,7 @@ public:
common::ObString table_name_;
bool is_add_to_scheduler_;
lib::Worker::CompatMode compat_mode_;
bool foreign_key_checks_;
};
struct ObRenameTableItem