[#7171] Support parsing SQL Server getdate()
This commit is contained in:
parent
26673d4992
commit
6399be2373
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user