Skip to content

Commit

Permalink
remove unused SingleQuotedString from Constant
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiszlw committed Jan 28, 2024
1 parent 1935a90 commit 01873d6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bustubx/src/planner/expr/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ pub enum Constant {
Number(String),
Null,
Boolean(bool),
SingleQuotedString(String),
}
impl Constant {
pub fn from_sqlparser_value(value: &sqlparser::ast::Value) -> Self {
match value {
sqlparser::ast::Value::Number(n, ..) => Constant::Number(n.to_string()),
sqlparser::ast::Value::SingleQuotedString(s) => {
Constant::SingleQuotedString(s.to_string())
}
sqlparser::ast::Value::Boolean(b) => Constant::Boolean(*b),
sqlparser::ast::Value::Null => Constant::Null,
_ => unimplemented!(),
Expand Down

0 comments on commit 01873d6

Please sign in to comment.