1#include "duckdb/parser/statement/multi_statement.hpp"
2
3namespace duckdb {
4
5MultiStatement::MultiStatement() : SQLStatement(StatementType::MULTI_STATEMENT) {
6}
7
8MultiStatement::MultiStatement(const MultiStatement &other) : SQLStatement(other) {
9 for (auto &stmt : other.statements) {
10 statements.push_back(x: stmt->Copy());
11 }
12}
13
14unique_ptr<SQLStatement> MultiStatement::Copy() const {
15 return unique_ptr<MultiStatement>(new MultiStatement(*this));
16}
17
18} // namespace duckdb
19