JSqlParser icon indicating copy to clipboard operation
JSqlParser copied to clipboard

[BUG] JSQLParser Version : RDBMS : failing feature description

Open chenshuai741 opened this issue 1 year ago • 1 comments

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

Failing SQL Feature:

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

SQL Example:

  • Simplified Query Example, focusing on the failing feature
    -- Replace with your ACTUAL example
    select * from tuser where   name like '%'||?||'%'
    

Software Information:

  • JSqlParser version 4.2
  • Database Oracle

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.

chenshuai741 avatar Jun 28 '24 09:06 chenshuai741

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.

manticore-projects avatar Jun 28 '24 10:06 manticore-projects

Closed as stale when answered and no further questions have been asked.

manticore-projects avatar Jul 11 '24 03:07 manticore-projects