-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Jsqlparser failing when a sql CASE statement is involved
I have posted similar bugs for otehr keywords
To Reproduce
Steps to reproduce the behavior:
SELECT OrderID, Quantity,
CASE
WHEN Quantity > 30 THEN
WHEN Quantity = 30 THEN
ELSE
END AS QuantityText
FROM OrderDetails;
Exception:
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "CASE" "CASE"
at line 7, column 67.
Was expecting one of:
"!"
"("
"NOT"
Expected behavior
CASE should be parsed correctly
System
- Mysql 5.7
- Java 8
- JSqlParser version 3.2-SNAPSHOT
Metadata
Metadata
Assignees
Labels
No labels