-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fb33f4
commit 8a4e842
Showing
3 changed files
with
43 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,12 @@ | |
|
||
//$Authors = Jiri Cincura ([email protected]) | ||
|
||
using System; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Helpers; | ||
using Microsoft.EntityFrameworkCore.Query; | ||
using Microsoft.EntityFrameworkCore.TestModels.Northwind; | ||
using Microsoft.EntityFrameworkCore.TestUtilities; | ||
using Xunit; | ||
|
||
|
@@ -134,6 +137,13 @@ public override Task Where_mathf_radians(bool async) | |
return base.Where_mathf_radians(async); | ||
} | ||
|
||
[NotSupportedOnFirebirdTheory] | ||
[MemberData(nameof(IsAsyncData))] | ||
public override Task String_Join_non_aggregate(bool async) | ||
{ | ||
return AssertTranslationFailed(() => base.String_Join_non_aggregate(async)); | ||
} | ||
|
||
[NotSupportedByProviderTheory] | ||
[MemberData(nameof(IsAsyncData))] | ||
public override Task Regex_IsMatch_MethodCall(bool async) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,9 @@ | |
|
||
//$Authors = Jiri Cincura ([email protected]) | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Linq.Expressions; | ||
using Microsoft.EntityFrameworkCore.Query; | ||
using Microsoft.EntityFrameworkCore.Query.SqlExpressions; | ||
|
@@ -39,4 +42,28 @@ protected override Expression VisitUnary(UnaryExpression unaryExpression) | |
} | ||
return base.VisitUnary(unaryExpression); | ||
} | ||
|
||
public override SqlExpression GenerateGreatest(IReadOnlyList<SqlExpression> expressions, Type resultType) | ||
{ | ||
var resultTypeMapping = ExpressionExtensions.InferTypeMapping(expressions); | ||
return Dependencies.SqlExpressionFactory.Function( | ||
"MAXVALUE", | ||
expressions, | ||
nullable: true, | ||
Enumerable.Repeat(true, expressions.Count), | ||
resultType, | ||
resultTypeMapping); | ||
} | ||
|
||
public override SqlExpression GenerateLeast(IReadOnlyList<SqlExpression> expressions, Type resultType) | ||
{ | ||
var resultTypeMapping = ExpressionExtensions.InferTypeMapping(expressions); | ||
return Dependencies.SqlExpressionFactory.Function( | ||
"MINVALUE", | ||
expressions, | ||
nullable: true, | ||
Enumerable.Repeat(true, expressions.Count), | ||
resultType, | ||
resultTypeMapping); | ||
} | ||
} |