Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 844e564

Browse files
author
Dean Chen
committed
Fix mac compile error
1 parent ef6b9f4 commit 844e564

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/include/planner/alter_plan.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ class AlterPlan : public AbstractPlan {
2727
}
2828
virtual ~AlterPlan() {}
2929

30-
virtual PlanNodeType GetPlanNodeType() { return PlanNodeType::ALTER; }
30+
virtual PlanNodeType GetPlanNodeType() const override {
31+
return PlanNodeType::ALTER;
32+
}
3133

32-
virtual std::unique_ptr<AbstractPlan> Copy() { return nullptr; }
34+
virtual std::unique_ptr<AbstractPlan> Copy() const override { return nullptr; }
3335
};
3436
}
3537
}

src/include/planner/rename_plan.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ class RenamePlan : public AbstractPlan {
5252

5353
virtual ~RenamePlan() {}
5454

55-
virtual PlanNodeType GetPlanNodeType() const { return PlanNodeType::RENAME; }
55+
virtual PlanNodeType GetPlanNodeType() const override {
56+
return PlanNodeType::RENAME;
57+
}
5658

5759
const std::string GetInfo() const override {
5860
return StringUtil::Format(
@@ -63,12 +65,12 @@ class RenamePlan : public AbstractPlan {
6365
const_cast<char *>(this->db_name_.c_str()));
6466
}
6567

66-
std::unique_ptr<AbstractPlan> Copy() const {
68+
std::unique_ptr<AbstractPlan> Copy() const override {
6769
return std::unique_ptr<AbstractPlan>(
6870
new RenamePlan(this->obj_type, this->table_name_, this->db_name_,
6971
this->old_names_, this->new_names_));
7072
}
71-
73+
7274
std::string GetOldName() const { return this->old_names_[0]; }
7375

7476
std::string GetNewName() const { return this->new_names_[0]; }

0 commit comments

Comments
 (0)