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