JSQLParser / JSqlParser

JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
https://github.com/JSQLParser/JSqlParser/wiki
Apache License 2.0
5.2k stars 1.33k forks source link

[BUG] JSQLParser Version : RDBMS : failing feature description #2025

Open chenshuai741 opened 1 week ago

chenshuai741 commented 1 week ago

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

Failing SQL Feature:

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "||"

SQL Example:

Software Information:

Tips:

Please write in English and avoid Screenshots (as we can't copy and paste content from it). Try your example online with the latest JSQLParser and share the link in the error report. Do provide Links or References to the specific Grammar and Syntax you are trying to use.

manticore-projects commented 1 week ago

Greetings.

You will need to put spaces in between the operators, e.g.

SELECT *
FROM tuser
WHERE name LIKE '%' || ? || '%'
;

Also please use the latest version of JSQLParser 4.9.