Skip to content

Commit

Permalink
chore/binder: throw err for other objectnames
Browse files Browse the repository at this point in the history
Signed-off-by: caicancai <[email protected]>
  • Loading branch information
caicancai committed Nov 15, 2023
1 parent 73b2c79 commit 8e19fee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/binder/drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl Binder {
cascade,
})))
}
_ => todo!(),
_ => Err(BindError::UnsupportedObjectName(object_type.into())),
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/binder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ pub enum BindError {
NotSupportedOnInternalTable,
#[error("{0:?} is not an aggregate function")]
NotAgg(String),
#[error("unsupported object name: {0:?}")]
UnsupportedObjectName(ObjectType),
#[error("not supported yet: {0}")]
Todo(String),
}
Expand Down

0 comments on commit 8e19fee

Please sign in to comment.