mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复PostgreSQL、H2使用upsert字段大小写问题
This commit is contained in:
@@ -63,6 +63,7 @@ public class H2Dialect extends AnsiSqlDialect {
|
||||
String tableName = entity.getTableName();
|
||||
if (null != this.wrapper) {
|
||||
tableName = this.wrapper.wrap(tableName);
|
||||
keys = wrapper.wrap(keys);
|
||||
}
|
||||
builder.append("MERGE INTO ").append(tableName)
|
||||
// 字段列表
|
||||
|
@@ -65,6 +65,7 @@ public class PostgresqlDialect extends AnsiSqlDialect{
|
||||
String tableName = entity.getTableName();
|
||||
if (null != this.wrapper) {
|
||||
tableName = this.wrapper.wrap(tableName);
|
||||
keys = wrapper.wrap(keys);
|
||||
}
|
||||
builder.append("INSERT INTO ").append(tableName)
|
||||
// 字段列表
|
||||
|
Reference in New Issue
Block a user