[#7171] Support parsing SQL Server getdate()

This commit is contained in:
lukaseder 2018-03-09 11:38:49 +01:00
parent 26673d4992
commit 6399be2373

View File

@ -3866,6 +3866,10 @@ final class ParserImpl implements Parser {
case 'g':
case 'G':
if (D.is(type))
if (parseKeywordIf(ctx, "GETDATE") && parse(ctx, '(') && parse(ctx, ')'))
return currentTimestamp();
if ((field = parseFieldGreatestIf(ctx)) != null)
return field;
else if (N.is(type) && (field = parseFieldGroupIdIf(ctx)) != null)