mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: 修复pr-494导致单元测试不通过问题
This commit is contained in:
parent
fc0812228a
commit
890e0c3944
@ -202,7 +202,7 @@ public class AccountNativeTest implements WithAssertions {
|
|||||||
queryWrapper.where(Account::getId).ge(100)
|
queryWrapper.where(Account::getId).ge(100)
|
||||||
.and(Account::getUserName).like("michael")
|
.and(Account::getUserName).like("michael")
|
||||||
.or(Account::getUserName).like(null, If::notNull);
|
.or(Account::getUserName).like(null, If::notNull);
|
||||||
String expectSql = "SELECT * FROM WHERE `id` >= 100 AND `user_name` LIKE '%michael%'";
|
String expectSql = "SELECT * WHERE `id` >= 100 AND `user_name` LIKE '%michael%'";
|
||||||
assertThat(queryWrapper.toSQL()).isEqualTo(expectSql);
|
assertThat(queryWrapper.toSQL()).isEqualTo(expectSql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user