1 | #include "duckdb/execution/operator/schema/physical_drop.hpp" |
---|---|
2 | #include "duckdb/main/client_context.hpp" |
3 | |
4 | using namespace duckdb; |
5 | using namespace std; |
6 | |
7 | void PhysicalDrop::GetChunkInternal(ClientContext &context, DataChunk &chunk, PhysicalOperatorState *state) { |
8 | switch (info->type) { |
9 | case CatalogType::PREPARED_STATEMENT: |
10 | if (!context.prepared_statements->DropEntry(context.ActiveTransaction(), info->name, false)) { |
11 | // silently ignore |
12 | } |
13 | break; |
14 | default: |
15 | Catalog::GetCatalog(context).DropEntry(context, info.get()); |
16 | break; |
17 | } |
18 | state->finished = true; |
19 | } |
20 |