1 | #include "duckdb/parser/statement/prepare_statement.hpp" |
---|---|
2 | |
3 | namespace duckdb { |
4 | |
5 | PrepareStatement::PrepareStatement() : SQLStatement(StatementType::PREPARE_STATEMENT), statement(nullptr), name("") { |
6 | } |
7 | |
8 | PrepareStatement::PrepareStatement(const PrepareStatement &other) |
9 | : SQLStatement(other), statement(other.statement->Copy()), name(other.name) { |
10 | } |
11 | |
12 | unique_ptr<SQLStatement> PrepareStatement::Copy() const { |
13 | return unique_ptr<PrepareStatement>(new PrepareStatement(*this)); |
14 | } |
15 | |
16 | } // namespace duckdb |
17 |