Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add GETDATE, NOW as alias to parser + allow CURRENT_TIMESTAMP with parenthesis #1979

Open
@paulrutter

Description

@paulrutter

We're in the process of using the AlaSQL parser to validate query syntax in our product.
The AlaSQL parser currently does not recognize the following aliases toCURRENT_TIMESTAMP (see61date.js).

  • NOW
  • GETDATE

Also,CURRENT_TIMESTAMP is recognized by the parser, whileCURRENT_TIMESTAMP() is not.
Do note that all of these functionsdo work in a query, the parser just cannot properly validate their use.

I'm going to supply a PR to get this fixed, which has one drawback:now,current_timestamp andgetdate can no longer be used as column aliases, as they're now reserved keywords.

Let me know what you think@mathiasrw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp