1 | #include "duckdb/planner/expression_binder/update_binder.hpp" |
---|---|
2 | |
3 | using namespace duckdb; |
4 | using namespace std; |
5 | |
6 | UpdateBinder::UpdateBinder(Binder &binder, ClientContext &context) : ExpressionBinder(binder, context) { |
7 | } |
8 | |
9 | BindResult UpdateBinder::BindExpression(ParsedExpression &expr, idx_t depth, bool root_expression) { |
10 | switch (expr.expression_class) { |
11 | case ExpressionClass::WINDOW: |
12 | return BindResult("window functions are not allowed in UPDATE"); |
13 | default: |
14 | return ExpressionBinder::BindExpression(expr, depth); |
15 | } |
16 | } |
17 | |
18 | string UpdateBinder::UnsupportedAggregateMessage() { |
19 | return "aggregate functions are not allowed in UPDATE"; |
20 | } |
21 |