-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Actual Behavior
String sql2 = "select * from a order by convert(a.name using gbk) desc";
CCJSqlParserUtil.parse(sql2);
above code throws an exception:
Caused by:
net.sf.jsqlparser.parser.ParseException: Encountered " "(" "( "" at line 1, column 33.
Was expecting one of:
<EOF>
"ASC" ...
"DESC" ...
"FOR" ...
"UNION" ...
"ORDER" ...
"INTERSECT" ...
"EXCEPT" ...
"MINUS" ...
"NULLS" ...
";" ...
"," ...
"|" ...
"&" ...
"^" ...
"::" ...
at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:16395)
Expected Behavior
I hope jsqlparse can support order by convert(column using charset) desc/asc
Steps to Reproduce the Problem
- use jsqlparse, version:1.0, (jsqlparse-1.3 has same issue)
- execute above code in IDE(java)
- throws exception
Specifications
- Version:1.0
- Platform:Windows, jdk8
- Subsystem:
lmqian, cur3n4 and xyzhuzhou
Metadata
Metadata
Assignees
Labels
No labels