Skip to content

Commit

Permalink
add default postgres db
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Jul 9, 2024
1 parent 11cfcd0 commit a18d81a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Bugfix for listing databases on Postgres server failing without specifying connection database

## [3.2.5] - 2024-06-07

- Bugfix for resource lifetime in ListDatabasesAsync, add unit tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public override IEnumerable<string> ListDatabases(DbConnectionStringBuilder buil
//create a copy so as not to corrupt the original
var b = new NpgsqlConnectionStringBuilder(builder.ConnectionString)
{
Database = null,
Database = "postgres", //Use the default database, otherwise Npgsql will try to connect to a database with the same name as the user
Timeout = 5
};

Expand Down

0 comments on commit a18d81a

Please sign in to comment.