[#7518] CURRENT_DATE and CURRENT_DATE() are both possible (and similar functions, too)
This commit is contained in:
parent
eaccc7897b
commit
0e7aa2e4b0
@ -637,11 +637,11 @@ term =
|
||||
| 'COUNT' '(' ( '*' | [ 'DISTINCT' | 'ALL' ] field ) ')' [ keep | filter ] [ over ]
|
||||
| 'CUME_DIST' ( '(' ')' over | '(' fields ')' withinGroup )
|
||||
| 'CURRVAL' '(' ( name | stringLiteral ) ')'
|
||||
| 'CURRENT_DATE'
|
||||
| 'CURRENT_SCHEMA'
|
||||
| 'CURRENT_TIME'
|
||||
| 'CURRENT_TIMESTAMP'
|
||||
| 'CURRENT_USER'
|
||||
| 'CURRENT_DATE' [ '(' ')' ]
|
||||
| 'CURRENT_SCHEMA' [ '(' ')' ]
|
||||
| 'CURRENT_TIME' [ '(' ')' ]
|
||||
| 'CURRENT_TIMESTAMP' [ '(' ')' ]
|
||||
| 'CURRENT_USER' [ '(' ')' ]
|
||||
| 'CURDATE' '(' ')'
|
||||
| 'CURTIME' '(' ')'
|
||||
| dateLiteral
|
||||
|
||||
@ -4470,9 +4470,9 @@ final class ParserImpl implements Parser {
|
||||
if (S.is(type))
|
||||
if ((field = parseFieldConcatIf(ctx)) != null)
|
||||
return field;
|
||||
else if (parseKeywordIf(ctx, "CURRENT_SCHEMA"))
|
||||
else if (parseKeywordIf(ctx, "CURRENT_SCHEMA") && (parseIf(ctx, '(') && parse(ctx, ')') || true))
|
||||
return currentSchema();
|
||||
else if (parseKeywordIf(ctx, "CURRENT_USER"))
|
||||
else if (parseKeywordIf(ctx, "CURRENT_USER") && (parseIf(ctx, '(') && parse(ctx, ')') || true))
|
||||
return currentUser();
|
||||
|
||||
if (N.is(type))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user