Regression: database existence check in HistoryRepository no longer goes through DatabaseCreator #34569
Labels
area-migrations
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
regression
type-bug
type-enhancement
Milestone
As part of #34115, the implementation of HistoryRepository.Exists was changed to no longer use the DatabaseCreator:
Old Exists
New Exists
This breaks PG, and likely other databases as well - it assumes that one can connect/login with the connection string containing the non-existing database, and then find out whether the database exists via the query. But in PG you can't connect to a non-existing database.
As a result, NpgsqlDatabaseCreator implements its Exists by simply trying to connect, and interpreting "database doesn't exist" behavior to return false etc.
The text was updated successfully, but these errors were encountered: