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

Commit 6465c91

Browse files
schedutronapavlo
authored andcommitted
Add context for insert statement
1 parent 5be1445 commit 6465c91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/binder/bind_node_visitor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ void BindNodeVisitor::Visit(parser::CreateStatement *node) {
175175
}
176176
void BindNodeVisitor::Visit(parser::InsertStatement *node) {
177177
node->TryBindDatabaseName(default_database_name_);
178+
context_ = std::make_shared<BinderContext>(nullptr);
179+
context_->AddRegularTable(node->GetDatabaseName(), node->GetTableName(),
180+
node->GetTableName(), txn_);
178181
if (node->select != nullptr) {
179182
node->select->Accept(this);
180183
}

0 commit comments

Comments
 (0)