From 7b2d6dda91e4c4c05033c45e6e45abd63698bc3c Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Sat, 30 Sep 2023 13:14:56 -0400 Subject: [PATCH] allow numeric and boolean opts (#459) --- nexus/analyzer/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nexus/analyzer/src/lib.rs b/nexus/analyzer/src/lib.rs index 1000dd77db..b9d01e1739 100644 --- a/nexus/analyzer/src/lib.rs +++ b/nexus/analyzer/src/lib.rs @@ -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);