-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSqlParser doesn't support convert function used as converting a value to a specified character set #1257
Comments
MySQL CONVERT() character sets is not supported. https://www.w3schools.com/mysql/func_mysql_convert.asp |
Thanks for your answer, caption has been changed. |
I work though the open issue from time to time and try to add the most useful statements with a focus on wide application and SQL standard compliance. PRs are alsways most welcome and you best chance for exotic features like the MySQL specific Convert() function. |
Describe the bug
ParseException occurs when parse SQL
To Reproduce
Steps to reproduce the behavior:
SELECT id,name,version,identity,type,
desc
,enable,content FROM tbl_templateWHERE (name like ?) ORDER BY convert(name using GBK) ASC
2. Parsing this SQL using JSqlParser with this statements
CCJSqlParserUtil.parse(String.class)
3. Exception
Exception in thread "main" net.sf.jsqlparser.JSQLParserException: Encountered unexpected token: "(" "("
at line 3, column 38.
Was expecting one of:
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "("
at line 3, column 38.
Was expecting one of:
Expected behavior
Return instance of net.sf.jsqlparser.statement.select.Select
System
MySQL 8.0.16
1.8.0_212
4.0 / 4.1
The text was updated successfully, but these errors were encountered: