Skip to content

Commit b9f3956

Browse files
committed
StorageProviderVersion extended + TestConfiguration better names
1 parent f7edd11 commit b9f3956

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

Orm/Xtensive.Orm.Tests.Framework/StorageProviderVersion.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ public static class StorageProviderVersion
3131
public static Version PostgreSql90 = new Version(9, 0);
3232
public static Version PostgreSql91 = new Version(9, 1);
3333
public static Version PostgreSql92 = new Version(9, 2);
34+
public static Version PostgreSql96 = new Version(9, 6);
3435
public static Version PostgreSql100 = new Version(10, 0);
3536
public static Version PostgreSql110 = new Version(11, 0);
3637
public static Version PostgreSql120 = new Version(12, 0);
38+
public static Version PostgreSql130 = new Version(13, 0);
39+
public static Version PostgreSql140 = new Version(14, 0);
40+
public static Version PostgreSql150 = new Version(15, 0);
41+
public static Version PostgreSql160 = new Version(16, 0);
42+
public static Version PostgreSql170 = new Version(17, 0);
3743

3844
public static Version MySql55 = new Version(5, 5);
3945
public static Version MySql56 = new Version(5, 6);

Orm/Xtensive.Orm.Tests.Framework/TestConfiguration.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ public void InitAppContextSwitches()
7171
private void InitPostgreSqlSwitches()
7272
{
7373
var infinityAliasesValue = GetEnvironmentVariable(InfinityAliasesKey);
74-
if (bool.TryParse(infinityAliasesValue, out var bbb)) {
75-
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", !bbb);
74+
if (bool.TryParse(infinityAliasesValue, out var switch1Value)) {
75+
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", !switch1Value);
7676
}
7777
var legacyTimestampsValue = GetEnvironmentVariable(LegacyTimestapmKey);
78-
if (bool.TryParse(legacyTimestampsValue, out var ccc)) {
79-
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", ccc);
78+
if (bool.TryParse(legacyTimestampsValue, out var switch2Value)) {
79+
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", switch2Value);
8080
}
8181
}
8282

0 commit comments

Comments
 (0)