Skip to content

Commit

Permalink
mysql: database field on peer is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Apr 29, 2024
1 parent 2dd3d5c commit f113394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nexus/analyzer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f113394

Please sign in to comment.