v3.2.687-preview20230119 pgsql15.0 Version 处理

This commit is contained in:
2881099
2023-01-17 21:37:38 +08:00
parent cecb08b977
commit c6f0e4455f
34 changed files with 89 additions and 58 deletions

View File

@ -89,8 +89,8 @@ namespace FreeSql.Custom.PostgreSQL
var isPg10 = (_orm.DbFirst as CustomPostgreSQLDbFirst).IsPg10;
using (var conn = _orm.Ado.MasterPool.Get(TimeSpan.FromSeconds(5)))
{
isPg95 = CustomPostgreSQLDbFirst.PgVersionIs(conn.Value.ServerVersion, 9, 5);
isPg96 = CustomPostgreSQLDbFirst.PgVersionIs(conn.Value.ServerVersion, 9, 6);
isPg95 = CustomPostgreSQLDbFirst.ParsePgVersion(conn.Value.ServerVersion, 9, 5).Item1;
isPg96 = CustomPostgreSQLDbFirst.ParsePgVersion(conn.Value.ServerVersion, 9, 6).Item1;
}
foreach (var obj in objects)