From f11339441a9e3ac0f044b3eba8d1d97584907163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Mon, 29 Apr 2024 17:00:53 +0000 Subject: [PATCH] mysql: database field on peer is optional --- nexus/analyzer/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nexus/analyzer/src/lib.rs b/nexus/analyzer/src/lib.rs index 88a87e6e46..b844220a70 100644 --- a/nexus/analyzer/src/lib.rs +++ b/nexus/analyzer/src/lib.rs @@ -933,7 +933,8 @@ fn parse_db_options(db_type: DbType, with_options: &[SqlOption]) -> anyhow::Resu .to_string(), database: opts .get("database") - .context("no default database specified")? + .cloned() + .unwrap_or_default() .to_string(), setup: opts .get("setup")