-
Notifications
You must be signed in to change notification settings - Fork 4.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
版本 3.5.1 or 3.5.3.1 Encountered unexpected token: "\n\n\n" <ST_SEMICOLON> #5345
Comments
Greetings! Starting with JSQLParser 4.6, two empty lines .*\n\n\n terminate a statement. select 1 from dual
select 2 from dual gives 2 statements (without typing semicolons ;) I will appreciate your consideration, since we receive reports about MyBatis Plus' auto-generated statements. Thank you. |
同遇到这个问题,暂时换回4.4,把关键字换换,先用着 |
暂时可以通过配置去除一下,后面的版本解决. mybatis-plus:
configuration:
shrink-whitespaces-in-sql: true |
#5484 |
//将连续的空行替换为一个空行 `
或者 (不推荐) |
Again, you can call |
当前使用版本(必填,否则不予处理)
3.5.1
该问题是如何引起的?(确定最新版也有问题再提!!!)
使用自带的
updateById
方法,生成的sql
如下UPDATE om_calendar_act_info SET action_calendar_id =?,act_time =?,sys_code =?,apply =?,act_name =?,begin_date =?,end_date =?,STATUS =?,is_commit =?,activity_details =?,images =?,materials =?,hr_bh =?,hr_name =?,create_time =?,update_user =?,update_time =? WHEREid =? AND del =0
,一开始执行的时候会报错如下Encountered unexpected token: "apply" "APPLY"
,于是我提了一个issue ,但是我根据回复修改后,又出现如下问题Encountered unexpected token: "\n\n\n" <ST_SEMICOLON>
。我将版本改为3.5.3.1后还是会出现该问题重现步骤(如果有就写完整)
报错信息
The text was updated successfully, but these errors were encountered: