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

Commit fdce5cf

Browse files
committed
modified alter plan, fixed bugs
1 parent a1e7265 commit fdce5cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/planner/alter_plan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ AlterPlan::AlterPlan(parser::AlterTableStatement *parse_tree) {
5858
}
5959
case parser::AlterTableStatement::AlterTableType::ALTER: {
6060
// deal with dropped columns
61+
type = AlterType::ALTER;
6162
for (auto col : *parse_tree->dropped_names) {
6263
LOG_TRACE("Drooped column name: %s", col);
6364
dropped_columns.push_back(std::string(col));
64-
type = AlterType::ALTER;
6565
}
6666

6767
// deal with added columns
@@ -96,6 +96,7 @@ AlterPlan::AlterPlan(parser::AlterTableStatement *parse_tree) {
9696
std::string name = tmp.get()->name;
9797
changed_type_columns.emplace_back(std::make_pair(name, val));
9898
}
99+
break;
99100
}
100101
default:
101102
LOG_ERROR("Not Implemented the plan yet!");

0 commit comments

Comments
 (0)