1 | #include "duckdb/planner/expression/bound_default_expression.hpp" |
---|---|
2 | #include "duckdb/common/exception.hpp" |
3 | #include "duckdb/common/field_writer.hpp" |
4 | |
5 | namespace duckdb { |
6 | |
7 | void BoundDefaultExpression::Serialize(FieldWriter &writer) const { |
8 | writer.WriteSerializable(element: return_type); |
9 | } |
10 | |
11 | unique_ptr<Expression> BoundDefaultExpression::Deserialize(ExpressionDeserializationState &state, FieldReader &reader) { |
12 | auto return_type = reader.ReadRequiredSerializable<LogicalType, LogicalType>(); |
13 | return make_uniq<BoundDefaultExpression>(args&: return_type); |
14 | } |
15 | |
16 | } // namespace duckdb |
17 |