新增数据库Wrapper支持反解

This commit is contained in:
Looly 2024-03-28 15:53:11 +08:00
parent c93e28d775
commit abfa378ce0
2 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.27(2024-03-26)
# 5.8.27(2024-03-28)
### 🐣新特性
* 【extra 】 FreemarkerEngine修改默认版本参数
@ -11,6 +11,7 @@
* 【core 】 StrUtil.replace歧义修改为replaceByCodePointissue#I96LWH@Gitee
* 【core 】 FileUtil和PathUtil增加Resource重载issue#I97FJT@Gitee
* 【core 】 优化ThreadUtil.safeSleep使用System.nanoTime()issue#I9BMGK@Gitee
* 【db 】 新增数据库Wrapper支持反解pr#1192@Gitee
### 🐞Bug修复
* 【core 】 修复PathMover对目标已存在且只读文件报错错误问题issue#I95CLT@Gitee

View File

@ -121,10 +121,11 @@ public class Wrapper implements Serializable {
}
/**
* 解包装字段名<br>
* 解包装字段名<br>
*
* @param field 字段名
* @return 未包装的字段名
* @since 5.8.27
*/
public String unWrap(String field) {
if (preWrapQuote == null || sufWrapQuote == null || StrUtil.isBlank(field)) {
@ -136,7 +137,7 @@ public class Wrapper implements Serializable {
return field;
}
//如果字段中包含通配符或者括号字段通配符或者函数不做包装
//如果字段中包含通配符或者括号字段通配符或者函数不做包装
if (StrUtil.containsAnyIgnoreCase(field, "*", "(", " ", " as ")) {
return field;
}