Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] 5.0 4.9 4.2 mysql fulltext and concat error #2077

Open
nmf2019 opened this issue Sep 14, 2024 · 1 comment
Open

[BUG] 5.0 4.9 4.2 mysql fulltext and concat error #2077

nmf2019 opened this issue Sep 14, 2024 · 1 comment
Labels

Comments

@nmf2019
Copy link

nmf2019 commented Sep 14, 2024

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

  • mysql fulltext and concat error
  • match (name) against (concat('',?,'') in boolean mode) can't be parsed

SQL Example:

select match (name) against (concat('',?,'') in boolean mode) as full_text from commodity

Software Information:

  • JSqlParser 5.0 4.9 4.3 4.2
  • mysql 5.7

code

Statement parsed = CCJSqlParserUtil.parse("select match (name) against (concat('',?,'') in boolean mode) as full_text from commodity", null);

Exception in thread "main" net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "concat" <S_IDENTIFIER>
at line 1, column 30.

Was expecting one of:

"&"
":"
"?"
<S_CHAR_LITERAL>
<S_PARAMETER>

at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:352)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:125)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:91)
@manticore-projects
Copy link
Contributor

Greetings!

Nothing of this exotic syntax is supported (or in scope).
You will need to provide or sponsor an implementation to make this happen.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants