Skip to content

Commit

Permalink
Update PostgreSqlServerHelper.cs
Browse files Browse the repository at this point in the history
Open connection first
  • Loading branch information
jas88 committed Jul 16, 2024
1 parent 10e1bdd commit f473d8c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public override void CreateDatabase(DbConnectionStringBuilder builder, IHasRunti
public override Version GetVersion(DiscoveredServer server)
{
using var con = new NpgsqlConnection(server.Builder.ConnectionString);
con.Open();
return con.PostgreSqlVersion;
}

Expand Down

0 comments on commit f473d8c

Please sign in to comment.