mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
新增数据库Wrapper支持反解
This commit is contained in:
parent
c93e28d775
commit
abfa378ce0
@ -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歧义,修改为replaceByCodePoint(issue#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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user