@@ -72,24 +72,24 @@ public class NpgsqlMathTranslator : IMethodCallTranslator
7272 { typeof ( MathF ) . GetRuntimeMethod ( nameof ( MathF . Tan ) , new [ ] { typeof ( float ) } ) ! , "tan" } ,
7373
7474 // https://www.postgresql.org/docs/current/functions-conditional.html#FUNCTIONS-GREATEST-LEAST
75- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( decimal ) , typeof ( decimal ) } ) ! , "greatest " } ,
76- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( double ) , typeof ( double ) } ) ! , "greatest " } ,
77- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( float ) , typeof ( float ) } ) ! , "greatest " } ,
78- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( int ) , typeof ( int ) } ) ! , "greatest " } ,
79- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( long ) , typeof ( long ) } ) ! , "greatest " } ,
80- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( short ) , typeof ( short ) } ) ! , "greatest " } ,
81- { typeof ( MathF ) . GetRuntimeMethod ( nameof ( MathF . Max ) , new [ ] { typeof ( float ) , typeof ( float ) } ) ! , "greatest " } ,
82- { typeof ( BigInteger ) . GetRuntimeMethod ( nameof ( BigInteger . Max ) , new [ ] { typeof ( BigInteger ) , typeof ( BigInteger ) } ) ! , "greatest " } ,
75+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( decimal ) , typeof ( decimal ) } ) ! , "GREATEST " } ,
76+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( double ) , typeof ( double ) } ) ! , "GREATEST " } ,
77+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( float ) , typeof ( float ) } ) ! , "GREATEST " } ,
78+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( int ) , typeof ( int ) } ) ! , "GREATEST " } ,
79+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( long ) , typeof ( long ) } ) ! , "GREATEST " } ,
80+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Max ) , new [ ] { typeof ( short ) , typeof ( short ) } ) ! , "GREATEST " } ,
81+ { typeof ( MathF ) . GetRuntimeMethod ( nameof ( MathF . Max ) , new [ ] { typeof ( float ) , typeof ( float ) } ) ! , "GREATEST " } ,
82+ { typeof ( BigInteger ) . GetRuntimeMethod ( nameof ( BigInteger . Max ) , new [ ] { typeof ( BigInteger ) , typeof ( BigInteger ) } ) ! , "GREATEST " } ,
8383
8484 // https://www.postgresql.org/docs/current/functions-conditional.html#FUNCTIONS-GREATEST-LEAST
85- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( decimal ) , typeof ( decimal ) } ) ! , "least " } ,
86- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( double ) , typeof ( double ) } ) ! , "least " } ,
87- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( float ) , typeof ( float ) } ) ! , "least " } ,
88- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( int ) , typeof ( int ) } ) ! , "least " } ,
89- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( long ) , typeof ( long ) } ) ! , "least " } ,
90- { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( short ) , typeof ( short ) } ) ! , "least " } ,
91- { typeof ( MathF ) . GetRuntimeMethod ( nameof ( MathF . Min ) , new [ ] { typeof ( float ) , typeof ( float ) } ) ! , "least " } ,
92- { typeof ( BigInteger ) . GetRuntimeMethod ( nameof ( BigInteger . Min ) , new [ ] { typeof ( BigInteger ) , typeof ( BigInteger ) } ) ! , "least " } ,
85+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( decimal ) , typeof ( decimal ) } ) ! , "LEAST " } ,
86+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( double ) , typeof ( double ) } ) ! , "LEAST " } ,
87+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( float ) , typeof ( float ) } ) ! , "LEAST " } ,
88+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( int ) , typeof ( int ) } ) ! , "LEAST " } ,
89+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( long ) , typeof ( long ) } ) ! , "LEAST " } ,
90+ { typeof ( Math ) . GetRuntimeMethod ( nameof ( Math . Min ) , new [ ] { typeof ( short ) , typeof ( short ) } ) ! , "LEAST " } ,
91+ { typeof ( MathF ) . GetRuntimeMethod ( nameof ( MathF . Min ) , new [ ] { typeof ( float ) , typeof ( float ) } ) ! , "LEAST " } ,
92+ { typeof ( BigInteger ) . GetRuntimeMethod ( nameof ( BigInteger . Min ) , new [ ] { typeof ( BigInteger ) , typeof ( BigInteger ) } ) ! , "LEAST " } ,
9393 } ;
9494
9595 private static readonly IEnumerable < MethodInfo > TruncateMethodInfos = new [ ]
0 commit comments