Skip to content

Commit

Permalink
fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishj committed Jan 7, 2025
1 parent eca038b commit 0dd3096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/planner/binder/expression/bind_operator_expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace duckdb {

LogicalType ExpressionBinder::ResolveNotType(OperatorExpression &op, vector<unique_ptr<Expression>> &children) {
// NOT expression, cast child to BOOLEAN
D_ASSERT(children.size() != 1);
D_ASSERT(children.size() == 1);
children[0] = BoundCastExpression::AddCastToType(context, std::move(children[0]), LogicalType::BOOLEAN);
return LogicalType(LogicalTypeId::BOOLEAN);
}
Expand Down

0 comments on commit 0dd3096

Please sign in to comment.