-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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.6版本mysql的select语句中对for update的语句生成存在问题 #6068
Comments
提供插件配置,和mapper层方法. |
@bean mapper.java List selectByCheckStatus(int checkStatus, int limit); List selectBySendStatus(Long sendStatus, int limit); } mapper.xml <select id="selectByCheckStatus" resultType=xxxxxx.domain.SysSmsSendRecord"> |
已经反馈给JSqlParser |
mapper.xml中的sql定义
select *
from sys_sms_send_record
where check_status = #{checkStatus}
order by submit_time asc limit #{limit} for
update
3.5.6版本,执行时,实际执行的语句为
select * from sys_sms_send_record where check_status = 0 for update order by submit_time asc limit 10
for update的位置被插入到 order by之前,执行sql出错,3.5.5版本无此问题。
The text was updated successfully, but these errors were encountered: