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

@ -15,25 +15,24 @@
#include "sql/engine/dml/ob_table_update.h"
#include "sql/engine/dml/ob_table_replace.h"
using namespace oceanbase::common;
namespace oceanbase {
namespace sql {
class TestInsertUp : public ::testing::Test {
namespace oceanbase
{
namespace sql
{
class TestInsertUp : public ::testing::Test
{
public:
TestInsertUp()
{}
virtual ~TestInsertUp()
{}
virtual void SetUp()
{}
virtual void TearDown()
{}
TestInsertUp() {}
virtual ~TestInsertUp() {}
virtual void SetUp() {}
virtual void TearDown() {}
};
TEST_F(TestInsertUp, test_reset)
{
ObArenaAllocator alloc;
ObTableInsertUp insert_up(alloc);
const int64_t COUNT = 5;
const int64_t COUNT=5;
EXPECT_EQ(OB_SUCCESS, insert_up.init_scan_column_id_array(COUNT));
EXPECT_EQ(OB_SUCCESS, insert_up.init_update_related_column_array(COUNT));
EXPECT_EQ(OB_SUCCESS, insert_up.init_column_ids_count(COUNT));
@ -52,10 +51,10 @@ TEST_F(TestInsertUp, test_reset)
replace.reset();
replace.reuse();
}
} // namespace sql
} // namespace oceanbase
} //namespace sql
} //namespace oceanbase
int main(int argc, char** argv)
int main(int argc, char **argv)
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();