Skip to content

Commit

Permalink
fix: parameter checking of subquery in Where
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Feb 11, 2024
1 parent de8ca71 commit 38f3676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binder/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl<'a, T: Transaction> Binder<'a, T> {
let mut sub_query = self.bind_query(query)?;
let sub_query_schema = sub_query.output_schema();

if sub_query_schema.len() > 1 {
if sub_query_schema.len() != 1 {
return Err(DatabaseError::MisMatch(
"expects only one expression to be returned".to_string(),
"the expression returned by the subquery".to_string(),
Expand Down

0 comments on commit 38f3676

Please sign in to comment.