Skip to content
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

Caused by: java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "(" at line 5, column 12. #6040

Open
sly-APalmCat opened this issue Apr 7, 2024 · 2 comments

Comments

@sly-APalmCat
Copy link

当前使用版本(必填,否则不予处理)

com.baomidou:mybatis-plus-boot-starter:3.5.4.1
com.baomidou:mybatis-plus:3.5.4.1
com.github.jsqlparser:jsqlparser:4.6

该问题是如何引起的?(确定最新版也有问题再提!!!)

IF(ie.province IS NULL || ie.province = "", "", "-") AS country_area

重现步骤(如果有就写完整)

对 || | 这种符号报错。
sql中执行就是了。

报错信息

net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "("
at line 5, column 12.

Was expecting one of:

"&"
"::"
"<<"
">>"
"CONNECT"
"EMIT"
"GROUP"
"HAVING"
"INTO"
"START"
"WINDOW"
"["
"^"
"|"
@miemieYaho
Copy link
Member

net.sf.jsqlparser.parser.ParseException

@nieqiurong
Copy link
Contributor

|| 换成 or

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants