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 faa1a12 commit babd2f7
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 @@ -933,7 +933,9 @@ fn parse_db_options(db_type: DbType, with_options: &[SqlOption]) -> anyhow::Resu
.to_string(),
database: opts
.get("database")
.cloned()
.context("no default database specified")?
.unwrap_or_default()
.to_string(),
setup: opts
.get("setup")
Expand Down

0 comments on commit babd2f7

Please sign in to comment.