Skip to content

Commit

Permalink
allow numeric and boolean opts (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Sep 30, 2023
1 parent 71930a4 commit 7b2d6dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nexus/analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ fn parse_db_options(
let key = opt.name.value;
let val = match opt.value {
sqlparser::ast::Value::SingleQuotedString(str) => str,
sqlparser::ast::Value::Number(v, _) => v,
sqlparser::ast::Value::Boolean(v) => v.to_string(),
_ => panic!("invalid option type for peer"),
};
opts.insert(key, val);
Expand Down

0 comments on commit 7b2d6dd

Please sign in to comment.