1 | #include "duckdb/parser/statement/detach_statement.hpp" |
---|---|
2 | #include "duckdb/planner/binder.hpp" |
3 | #include "duckdb/planner/operator/logical_simple.hpp" |
4 | #include "duckdb/main/config.hpp" |
5 | |
6 | namespace duckdb { |
7 | |
8 | BoundStatement Binder::Bind(DetachStatement &stmt) { |
9 | BoundStatement result; |
10 | |
11 | result.plan = make_uniq<LogicalSimple>(args: LogicalOperatorType::LOGICAL_DETACH, args: std::move(stmt.info)); |
12 | result.names = {"Success"}; |
13 | result.types = {LogicalType::BOOLEAN}; |
14 | properties.allow_stream_result = false; |
15 | properties.return_type = StatementReturnType::NOTHING; |
16 | return result; |
17 | } |
18 | |
19 | } // namespace duckdb |
20 |