修复PostgreSQL、H2使用upsert字段大小写问题

This commit is contained in:
Looly 2023-12-28 18:48:07 +08:00
parent 09ee55cc6f
commit 674c601f86
3 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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)
// 字段列表 // 字段列表

View File

@ -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)
// 字段列表 // 字段列表