Skip to content

Commit

Permalink
Fix broken SQL Server regexes in Dapper example
Browse files Browse the repository at this point in the history
  • Loading branch information
bkoelman committed Sep 26, 2024
1 parent 6f3dbd9 commit 9648cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/DapperTests/IntegrationTests/SqlTextAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace DapperTests.IntegrationTests;
internal sealed class SqlTextAdapter(DatabaseProvider databaseProvider)
{
#if NET6_0
private const RegexOptions Options = RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture;
private const RegexOptions Options = RegexOptions.Compiled | RegexOptions.CultureInvariant;
#else
private const RegexOptions Options = RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture | RegexOptions.NonBacktracking;
private const RegexOptions Options = RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.NonBacktracking;
#endif

private static readonly Dictionary<Regex, string> SqlServerReplacements = new()
Expand Down

0 comments on commit 9648cde

Please sign in to comment.