Skip to content

Commit

Permalink
chore/binder: throw err for other objectnames (#808)
Browse files Browse the repository at this point in the history
* chore/binder: throw err for other objectnames

Signed-off-by: caicancai <[email protected]>

* chore/binder: throw err for other objectnames

Signed-off-by: caicancai <[email protected]>

---------

Signed-off-by: caicancai <[email protected]>
  • Loading branch information
caicancai authored Nov 17, 2023
1 parent 73b2c79 commit a5794ff
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)),
}
}
}
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 a5794ff

Please sign in to comment.