Merge pull request #7833 from dataease/pr@dev-v2@fixds

Pr@dev v2@fixds
This commit is contained in:
taojinlong 2024-01-25 16:49:12 +08:00 committed by GitHub
commit b205111806
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class MysqlEngineProvider extends EngineProvider {
if (StringUtils.isEmpty(strings[i])) {
strings1[i] = null;
} else {
strings1[i] = strings[i].replace("'", "\\'");
strings1[i] = strings[i].replace("\\", "\\\\").replace("'", "\\'");
}
}
values.append("('").append(String.join("','", Arrays.asList(strings1)))

View File

@ -244,6 +244,11 @@ const validateDS = () => {
if (status[i].status === 'Error') {
error++
}
for (let i = 0; i < nodeInfo.apiConfiguration.length; i++) {
if (nodeInfo.apiConfiguration[i].name === status[i].name) {
nodeInfo.apiConfiguration[i].status = status[i].status
}
}
}
if (error === 0) {
ElMessage.success('校验成功')