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