Skip to content

parse "CURRENT_TIMESTAMP(3)" error #1507

Closed

Description

@patinousward

CCJSqlParserUtil.parse("update btrip_payment set update_time = CURRENT_TIMESTAMP(3) where id = 1");

version:4.2

image

Activity

  1. wumpz commented on Apr 9, 2022

    @wumpz
    Member

    JSqlParser only supports CURRENT_TIMESTAMP without parameters. Which database supports this?

  2. patinousward commented on Apr 11, 2022

    @patinousward
    Author

    JSqlParser only supports CURRENT_TIMESTAMP without parameters. Which database supports this?

    mysql support

  3. wumpz commented on Apr 11, 2022

    @wumpz
    Member

    Any chance you want to provide a PR?

  4. manticore-projects commented on Jun 4, 2022

    @manticore-projects
    Contributor

    Actually, it is just a Keyword problem again: When <K_TIME_KEY_EXPR> was explicitly allowed as Function Name, then CURRENT_TIMESTAMP(3) would be read as a Function and parsed properly.

    The Keyword PR #1382 solves this problem.

  5. added a commit that references this issue on Nov 14, 2022
    9df3c07
  6. added a commit that references this issue on Nov 20, 2022
    bff268a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions