Skip to content

Commit ea67297

Browse files
committed
CSHARP-4238: Skip new integration tests on older servers.
1 parent d279245 commit ea67297

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

src/MongoDB.Driver.Core/Core/Misc/Feature.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public class Feature
5959
private static readonly Feature __createIndexesUsingInsertOperations = new Feature("CreateIndexesUsingInsertOperations", WireVersion.Zero, WireVersion.Server42);
6060
private static readonly Feature __csfle2 = new Feature("Csfle2", WireVersion.Server60);
6161
private static readonly Feature __currentOpCommand = new Feature("CurrentOpCommand", WireVersion.Server32);
62+
private static readonly Feature __dateOperatorsNewIn50 = new Feature("DateOperatorsNewIn50", WireVersion.Server50);
6263
private static readonly Feature __densifyStage = new Feature("DensifyStage", WireVersion.Server51);
6364
private static readonly Feature __documentValidation = new Feature("DocumentValidation", WireVersion.Server32);
6465
private static readonly Feature __directConnectionSetting = new Feature("DirectConnectionSetting", WireVersion.Server44);
@@ -322,6 +323,11 @@ public class Feature
322323
[Obsolete("This property will be removed in a later release.")]
323324
public static Feature CurrentOpCommand => __currentOpCommand;
324325

326+
/// <summary>
327+
/// Gets the date operators added in 5.0 feature.
328+
/// </summary>
329+
public static Feature DateOperatorsNewIn50 => __dateOperatorsNewIn50;
330+
325331
/// <summary>
326332
/// Gets the aggregate $densify stage feature.
327333
/// </summary>

0 commit comments

Comments
 (0)