From 4bfde422aef5b841d8267b5f498a6df49471c247 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Sat, 30 Sep 2023 11:37:55 -0400 Subject: [PATCH] allow numeric and boolean opts --- 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);