Files
oceanbase/src/sql/resolver/ddl/ob_truncate_table_stmt.cpp
wangzelin.wzl 93a1074b0c patch 4.0
2022-10-24 17:57:12 +08:00

52 lines
1.3 KiB
C++

/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PubL v2 for more details.
*/
#include "sql/resolver/ddl/ob_truncate_table_stmt.h"
namespace oceanbase
{
using namespace share::schema;
namespace sql
{
ObTruncateTableStmt::ObTruncateTableStmt(common::ObIAllocator *name_pool)
: ObDDLStmt(name_pool, stmt::T_TRUNCATE_TABLE),
is_truncate_oracle_temp_table_(false)
{
}
ObTruncateTableStmt::ObTruncateTableStmt()
: ObDDLStmt(stmt::T_TRUNCATE_TABLE),
is_truncate_oracle_temp_table_(false)
{
}
ObTruncateTableStmt::~ObTruncateTableStmt()
{
}
void ObTruncateTableStmt::set_database_name(const common::ObString &database_name)
{
truncate_table_arg_.database_name_ = database_name;
}
void ObTruncateTableStmt::set_table_name(const common::ObString &table_name)
{
truncate_table_arg_.table_name_ = table_name;
}
} //namespace sql
} //namespace oceanbase