1#include "duckdb/parser/expression/parameter_expression.hpp"
2#include "duckdb/planner/binder.hpp"
3#include "duckdb/planner/expression/bound_parameter_expression.hpp"
4#include "duckdb/planner/expression_binder.hpp"
5
6using namespace duckdb;
7using namespace std;
8
9BindResult ExpressionBinder::BindExpression(ParameterExpression &expr, idx_t depth) {
10 auto bound_parameter = make_unique<BoundParameterExpression>(expr.parameter_nr);
11 auto sql_type = bound_parameter->sql_type;
12 binder.parameters->push_back(bound_parameter.get());
13 return BindResult(move(bound_parameter), sql_type);
14}
15