Skip to content

Commit

Permalink
Revert "Move MySqlCompatibilityExpressionVisitor from after to just b…
Browse files Browse the repository at this point in the history
…efore the query compilation."

This reverts commit 4b1afd6.
  • Loading branch information
lauxjpn committed Sep 29, 2023
1 parent 3e6b354 commit da46c5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT. See LICENSE in the project root for license information.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Microsoft.EntityFrameworkCore.Diagnostics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public override Expression Process(Expression query)
query = new MySqlBug96947WorkaroundExpressionVisitor(_sqlExpressionFactory).Visit(query);
}

// Run the compatibility checks as late in the query translation pipeline as reasonable.
query = new MySqlCompatibilityExpressionVisitor(_options).Visit(query);

return query;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public override Expression Optimize(

canCache &= canCache3;

// Run the compatibility checks as late in the query pipeline (before the actual SQL translation happens) as reasonable.
queryExpression = new MySqlCompatibilityExpressionVisitor(_options).Visit(queryExpression);

return queryExpression;
}

Expand Down

0 comments on commit da46c5a

Please sign in to comment.