Skip to content

EnsureDatabase.For.PostgresqlDatabase throws a System.NullReferenceException  #26

Description

@nvierge-addactis

Is there an existing issue for this?

  • I have searched the existing issues

Library Version

6.0.0-beta.28

What happened?

My code use this extension method:
public static void PostgresqlDatabase(this SupportedDatabasesForEnsureDatabase supported, string connectionString, IUpgradeLog logger)

In the last beta (6.0.0-beta.28), this throws a System.NullReferenceException exception.

It looks easy to fix:

    public static void PostgresqlDatabase(this SupportedDatabasesForEnsureDatabase supported, string connectionString, IUpgradeLog logger)
    {
        PostgresqlDatabase(supported, connectionString, logger, new PostgresqlConnectionOptions());
    }

By the way, I think that some private methods could become public. At the moment, we can't provide an IUpgradeLog and a PostgresqlConnectionOptions.

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions