JSqlParser
JSqlParser copied to clipboard
parse "CURRENT_TIMESTAMP(3)" error
CCJSqlParserUtil.parse("update btrip_payment set update_time = CURRENT_TIMESTAMP(3) where id = 1");
version:4.2

JSqlParser only supports CURRENT_TIMESTAMP without parameters. Which database supports this?
JSqlParser only supports
CURRENT_TIMESTAMPwithout parameters. Which database supports this?
mysql support
Any chance you want to provide a PR?
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.