diff --git a/FAnsiSql/Implementations/PostgreSql/PostgreSqlServerHelper.cs b/FAnsiSql/Implementations/PostgreSql/PostgreSqlServerHelper.cs index ad2c293..a90d349 100644 --- a/FAnsiSql/Implementations/PostgreSql/PostgreSqlServerHelper.cs +++ b/FAnsiSql/Implementations/PostgreSql/PostgreSqlServerHelper.cs @@ -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; }