GeezerVison is showing github.com — parse "CURRENT_TIMESTAMP(3)" error · Issue #1507 · JSQLParser/JSqlParser
parse "CURRENT_TIMESTAMP(3)" error #1507
Description
CCJSqlParserUtil.parse("update btrip_payment set update_time = CURRENT_TIMESTAMP(3) where id = 1");
version:4.2

Activity
wumpz commented on Apr 9, 2022
JSqlParser only supports CURRENT_TIMESTAMP without parameters. Which database supports this?
patinousward commented on Apr 11, 2022
JSqlParser only supports CURRENT_TIMESTAMP without parameters. Which database supports this?
mysql support
wumpz commented on Apr 11, 2022
Any chance you want to provide a PR?
manticore-projects commented on Jun 4, 2022
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.
added a commit that references this issue
on Nov 14, 2022This issue will close once commit 9df3c07 is merged into the 'master' branch.9df3c07 added a commit that references this issue
on Nov 20, 2022This issue will close once commit bff268a is merged into the 'master' branch.bff268a
Metadata
Metadata
Development
No branches or pull requestsIssue actions