From 05dd763f1b2137fbfb93e9e4c68b624e19cd1738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Wed, 25 Jan 2023 13:32:29 +0100 Subject: [PATCH] [WIP] Add WhereClauseRewriter back to Translator --- src/Connected.Data/Sql/TSqlLinguist.cs | 3 ++- src/Connected.Expressions/Translation/Translator.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Connected.Data/Sql/TSqlLinguist.cs b/src/Connected.Data/Sql/TSqlLinguist.cs index e1fca67..9c148d6 100644 --- a/src/Connected.Data/Sql/TSqlLinguist.cs +++ b/src/Connected.Data/Sql/TSqlLinguist.cs @@ -16,7 +16,8 @@ internal sealed class TSqlLinguist : Linguist public override Expression Translate(Expression expression) { - /* + expression=WhereClauseRewriter.Rewrite() + /* * fix up any order-by's */ expression = OrderByRewriter.Rewrite(Language, expression); diff --git a/src/Connected.Expressions/Translation/Translator.cs b/src/Connected.Expressions/Translation/Translator.cs index 7f2d6f7..1782bee 100644 --- a/src/Connected.Expressions/Translation/Translator.cs +++ b/src/Connected.Expressions/Translation/Translator.cs @@ -61,7 +61,7 @@ public class Translator var result = ComparisonRewriter.Rewrite(rbound); - //result = WhereClauseRewriter.Rewrite(context, result); + result = WhereClauseRewriter.Rewrite(context, result); return result; }