[#7518] Add support for SQL Server STDEVP(), STDEV() functions

This commit is contained in:
lukaseder 2018-12-19 12:00:52 +01:00
parent 25d450c83e
commit a0d5691d83
2 changed files with 4 additions and 4 deletions

View File

@ -764,8 +764,8 @@ term =
| 'SIN' '(' numericOp ')'
| 'SINH' '(' numericOp ')'
| 'SPACE' '(' field ')'
| 'STDDEV_POP' '(' field ')' [ over ]
| 'STDDEV_SAMP' '(' field ')' [ over ]
| ( 'STDDEV_POP' | 'STDEVP' ) '(' field ')' [ over ]
| ( 'STDDEV_SAMP' | 'STDEV' ) '(' field ')' [ over ]
| 'STR_REPLACE' '(' field ',' field ',' field ')'
| 'SUBSTRING' '(' field 'FROM' numericOp [ 'FOR' numericOp ] ')'
| 'SUM' '(' [ 'DISTINCT' | 'ALL' ] field ')' [ keep | filter ] [ over ]

View File

@ -8591,9 +8591,9 @@ final class ParserImpl implements Parser {
return ComputationalOperation.EVERY;
else if (parseFunctionNameIf(ctx, "ANY") || parseFunctionNameIf(ctx, "SOME") || parseFunctionNameIf(ctx, "BOOL_OR"))
return ComputationalOperation.ANY;
else if (parseFunctionNameIf(ctx, "STDDEV_POP"))
else if (parseFunctionNameIf(ctx, "STDDEV_POP") || parseFunctionNameIf(ctx, "STDEVP"))
return ComputationalOperation.STDDEV_POP;
else if (parseFunctionNameIf(ctx, "STDDEV_SAMP"))
else if (parseFunctionNameIf(ctx, "STDDEV_SAMP") || parseFunctionNameIf(ctx, "STDEV"))
return ComputationalOperation.STDDEV_SAMP;
else if (parseFunctionNameIf(ctx, "VAR_POP"))
return ComputationalOperation.VAR_POP;