修复Dialect.psForCount未传入Wrapper导致大小写问题(issue#ID39G9@Gitee)。

This commit is contained in:
Looly
2025-10-23 21:51:13 +08:00
parent 4c563da8bd
commit e9c4e65f97
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
### 🐞Bug修复
* 【jwt 】 修复verify方法在定义alg为`none`时验证失效问题issue#4105@Github
* 【extra 】 修复`JschSessionPool.remove`逻辑错误问题。
* 【db 】 修复`Dialect.psForCount`未传入Wrapper导致大小写问题issue#ID39G9@Gitee)。
-------------------------------------------------------------------------------------------------------------
# 5.8.41(2025-10-12)

View File

@@ -133,7 +133,7 @@ public interface Dialect extends Serializable {
* @throws SQLException SQL执行异常
*/
default PreparedStatement psForCount(Connection conn, Query query) throws SQLException {
return psForCount(conn, SqlBuilder.create().query(query));
return psForCount(conn, SqlBuilder.create(getWrapper()).query(query));
}
/**