mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修复PostgreSQL、H2使用upsert字段大小写问题
This commit is contained in:
parent
09ee55cc6f
commit
674c601f86
@ -2,11 +2,12 @@
|
|||||||
# 🚀Changelog
|
# 🚀Changelog
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.25(2023-12-26)
|
# 5.8.25(2023-12-28)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【core 】 修复StrJoin当append内容后调用length()会出现空指针问题(issue#3444@Github)
|
* 【core 】 修复StrJoin当append内容后调用length()会出现空指针问题(issue#3444@Github)
|
||||||
|
* 【core 】 修复PostgreSQL、H2使用upsert字段大小写问题(issue#I8PB4X@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.24(2023-12-23)
|
# 5.8.24(2023-12-23)
|
||||||
|
@ -63,6 +63,7 @@ public class H2Dialect extends AnsiSqlDialect {
|
|||||||
String tableName = entity.getTableName();
|
String tableName = entity.getTableName();
|
||||||
if (null != this.wrapper) {
|
if (null != this.wrapper) {
|
||||||
tableName = this.wrapper.wrap(tableName);
|
tableName = this.wrapper.wrap(tableName);
|
||||||
|
keys = wrapper.wrap(keys);
|
||||||
}
|
}
|
||||||
builder.append("MERGE INTO ").append(tableName)
|
builder.append("MERGE INTO ").append(tableName)
|
||||||
// 字段列表
|
// 字段列表
|
||||||
|
@ -65,6 +65,7 @@ public class PostgresqlDialect extends AnsiSqlDialect{
|
|||||||
String tableName = entity.getTableName();
|
String tableName = entity.getTableName();
|
||||||
if (null != this.wrapper) {
|
if (null != this.wrapper) {
|
||||||
tableName = this.wrapper.wrap(tableName);
|
tableName = this.wrapper.wrap(tableName);
|
||||||
|
keys = wrapper.wrap(keys);
|
||||||
}
|
}
|
||||||
builder.append("INSERT INTO ").append(tableName)
|
builder.append("INSERT INTO ").append(tableName)
|
||||||
// 字段列表
|
// 字段列表
|
||||||
|
Loading…
x
Reference in New Issue
Block a user