1#include "duckdb/planner/expression_binder/update_binder.hpp"
2
3using namespace duckdb;
4using namespace std;
5
6UpdateBinder::UpdateBinder(Binder &binder, ClientContext &context) : ExpressionBinder(binder, context) {
7}
8
9BindResult 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
18string UpdateBinder::UnsupportedAggregateMessage() {
19 return "aggregate functions are not allowed in UPDATE";
20}
21