Simplify the update and delete statements for query results when the table contains primary keys

This commit is contained in:
SwallowGG
2023-11-02 23:41:30 +08:00
parent d545085d9c
commit 14461ed59d
2 changed files with 85 additions and 29 deletions

View File

@ -185,4 +185,8 @@ public class KingBaseMetaData extends DefaultMetaService implements MetaData {
.indexTypes(KingBaseIndexTypeEnum.getIndexTypes())
.build();
}
@Override
public String getMetaDataName(String... names) {
return Arrays.stream(names).filter(name -> StringUtils.isNotBlank(name)).map(name -> "\"" + name + "\"").collect(Collectors.joining("."));
}
}