patch 4.0

This commit is contained in:
wangzelin.wzl
2022-10-24 10:34:53 +08:00
parent 4ad6e00ec3
commit 93a1074b0c
10533 changed files with 2588271 additions and 2299373 deletions

View File

@ -17,11 +17,15 @@
#include "sql/resolver/ob_stmt_resolver.h"
#include "sql/resolver/ddl/ob_ddl_stmt.h"
namespace oceanbase {
namespace sql {
class ObDropTablegroupStmt : public ObDDLStmt {
namespace oceanbase
{
namespace sql
{
class ObDropTablegroupStmt : public ObDDLStmt
{
public:
explicit ObDropTablegroupStmt(common::ObIAllocator* name_pool) : ObDDLStmt(name_pool, stmt::T_DROP_TABLEGROUP)
explicit ObDropTablegroupStmt(common::ObIAllocator *name_pool)
:ObDDLStmt(name_pool, stmt::T_DROP_TABLEGROUP)
{}
ObDropTablegroupStmt() : ObDDLStmt(stmt::T_DROP_TABLEGROUP)
{}
@ -29,43 +33,32 @@ public:
virtual ~ObDropTablegroupStmt()
{}
void set_if_exist(const bool if_exist)
{
drop_tablegroup_arg_.if_exist_ = if_exist;
}
void set_if_exist(const bool if_exist) { drop_tablegroup_arg_.if_exist_ = if_exist; }
TO_STRING_KV(K_(drop_tablegroup_arg));
inline obrpc::ObDropTablegroupArg& get_drop_tablegroup_arg();
inline void set_tablegroup_name(const common::ObString& tablegroup_name);
void set_tenant_id(const uint64_t tenant_id)
{
drop_tablegroup_arg_.tenant_id_ = tenant_id;
}
virtual obrpc::ObDDLArg& get_ddl_arg()
{
return drop_tablegroup_arg_;
}
const common::ObString& get_tablegroup_name() const
{
return drop_tablegroup_arg_.tablegroup_name_;
}
inline obrpc::ObDropTablegroupArg &get_drop_tablegroup_arg();
inline void set_tablegroup_name(const common::ObString &tablegroup_name);
void set_tenant_id(const uint64_t tenant_id) { drop_tablegroup_arg_.tenant_id_ = tenant_id; }
virtual obrpc::ObDDLArg &get_ddl_arg() { return drop_tablegroup_arg_; }
const common::ObString &get_tablegroup_name() const
{ return drop_tablegroup_arg_.tablegroup_name_; }
private:
obrpc::ObDropTablegroupArg drop_tablegroup_arg_;
DISALLOW_COPY_AND_ASSIGN(ObDropTablegroupStmt);
obrpc::ObDropTablegroupArg drop_tablegroup_arg_;
DISALLOW_COPY_AND_ASSIGN(ObDropTablegroupStmt);
};
inline obrpc::ObDropTablegroupArg& ObDropTablegroupStmt::get_drop_tablegroup_arg()
inline obrpc::ObDropTablegroupArg &ObDropTablegroupStmt::get_drop_tablegroup_arg()
{
return drop_tablegroup_arg_;
}
inline void ObDropTablegroupStmt::set_tablegroup_name(const common::ObString& tablegroup_name)
inline void ObDropTablegroupStmt::set_tablegroup_name(const common::ObString &tablegroup_name)
{
drop_tablegroup_arg_.tablegroup_name_ = tablegroup_name;
}
} // namespace sql
} // namespace oceanbase
}
}
#endif // OCEANBASE_SQL_OB_DROP_TABLEGROUP_STMT_H_
#endif //OCEANBASE_SQL_OB_DROP_TABLEGROUP_STMT_H_