mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 14:31:00 +08:00
fix: 【桌面版】api数据源全量更新-简单重复-更新记录为空
This commit is contained in:
committed by
xuwei-fit2cloud
parent
0a880fea17
commit
ba46b7ee42
@@ -15,7 +15,7 @@ import java.util.List;
|
||||
public class H2EngineProvider extends EngineProvider {
|
||||
|
||||
private static final String creatTableSql =
|
||||
"CREATE TABLE IF NOT EXISTS `TABLE_NAME`" +
|
||||
"CREATE TABLE IF NOT EXISTS \"TABLE_NAME\"" +
|
||||
"Column_Fields;";
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ public class H2EngineProvider extends EngineProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String insertSql(String dsType, String tableName, DatasourceServer.UpdateType extractType, List<String[]> dataList, int page, int pageNumber,List<TableField> tableFields) {
|
||||
public String insertSql(String dsType, String tableName, DatasourceServer.UpdateType extractType, List<String[]> dataList, int page, int pageNumber, List<TableField> tableFields) {
|
||||
String engineTableName;
|
||||
switch (extractType) {
|
||||
case all_scope:
|
||||
@@ -35,7 +35,7 @@ public class H2EngineProvider extends EngineProvider {
|
||||
engineTableName = TableUtils.tableName(tableName);
|
||||
break;
|
||||
}
|
||||
String insertSql = "INSERT INTO `TABLE_NAME` VALUES ".replace("TABLE_NAME", engineTableName);
|
||||
String insertSql = "INSERT INTO \"TABLE_NAME\" VALUES ".replace("TABLE_NAME", engineTableName);
|
||||
StringBuffer values = new StringBuffer();
|
||||
|
||||
Integer realSize = page * pageNumber < dataList.size() ? page * pageNumber : dataList.size();
|
||||
|
||||
Reference in New Issue
Block a user