We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.10
代码
@Select(""" <script> select * from `user` <where> <if test="true"> 1=1 </if> and 2=2 <if test="true"> and 3=3 </if> </where> </script> """) List<Map<String, Object>> test();
生成sql
select * from `user` WHERE 1=1and 2=2and 3=3
and 2=2前后缺少空格
and 2=2
正确的sql应该是
select * from `user` WHERE 1=1 and 2=2 and 3=3
使用3.5.9没问题,原生mybatis:3.5.19也没问题
应该是这里改出的问题 eddde54#diff-c2e89b02c95139afd78ac601427433fa9aa044985ecc89fb9f2528eae9a39fb1L445
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
确认
当前程序版本
3.5.10
问题描述
代码
生成sql
and 2=2
前后缺少空格正确的sql应该是
使用3.5.9没问题,原生mybatis:3.5.19也没问题
应该是这里改出的问题
eddde54#diff-c2e89b02c95139afd78ac601427433fa9aa044985ecc89fb9f2528eae9a39fb1L445
详细堆栈日志
No response
The text was updated successfully, but these errors were encountered: