File tree Expand file tree Collapse file tree 4 files changed +2334
-835
lines changed
src/EFCore.Jet/Query/Sql/Internal
test/EFCore.Jet.FunctionalTests Expand file tree Collapse file tree 4 files changed +2334
-835
lines changed Original file line number Diff line number Diff line change @@ -608,6 +608,12 @@ protected override Expression VisitSqlConstant(SqlConstantExpression sqlConstant
608608 Sql . Append ( ")" ) ;
609609 return sqlConstantExpression ;
610610 }
611+
612+ if ( sqlConstantExpression . TypeMapping is BoolTypeMapping and not JetBoolTypeMapping )
613+ {
614+ Sql . Append ( ( bool ) sqlConstantExpression . Value ! ? "TRUE" : "FALSE" ) ;
615+ return sqlConstantExpression ;
616+ }
611617 return base . VisitSqlConstant ( sqlConstantExpression ) ;
612618 }
613619
Original file line number Diff line number Diff line change @@ -16660,6 +16660,8 @@ EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.Bool_not
1666016660EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.Bool_not_equal_nullable_int_HasValue(async: True)
1666116661EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseOpWhen_predicate(async: False)
1666216662EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseOpWhen_predicate(async: True)
16663+ EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseOpWhen_projection(async: False)
16664+ EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseOpWhen_projection(async: True)
1666316665EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseWhen_equal_to_first_or_third_filter(async: False)
1666416666EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseWhen_equal_to_first_or_third_filter(async: True)
1666516667EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseWhen_equal_to_first_or_third_select(async: False)
Original file line number Diff line number Diff line change @@ -17968,6 +17968,8 @@ EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.Bool_not
1796817968EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.Bool_not_equal_nullable_int_HasValue(async: True)
1796917969EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseOpWhen_predicate(async: False)
1797017970EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseOpWhen_predicate(async: True)
17971+ EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseOpWhen_projection(async: False)
17972+ EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseOpWhen_projection(async: True)
1797117973EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseWhen_equal_to_first_or_third_filter(async: False)
1797217974EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseWhen_equal_to_first_or_third_filter(async: True)
1797317975EntityFrameworkCore.Jet.FunctionalTests.Query.NullSemanticsQueryJetTest.CaseWhen_equal_to_first_or_third_select(async: False)
You can’t perform that action at this time.
0 commit comments