diff --git a/src/binder/drop.rs b/src/binder/drop.rs index 02368f194..3222e04b5 100644 --- a/src/binder/drop.rs +++ b/src/binder/drop.rs @@ -75,7 +75,7 @@ impl Binder { cascade, }))) } - _ => todo!(), + _ => Err(BindError::UnsupportedObjectName(object_type.into())), } } } diff --git a/src/binder/mod.rs b/src/binder/mod.rs index 9c98d0b40..87db6b1cd 100644 --- a/src/binder/mod.rs +++ b/src/binder/mod.rs @@ -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), }