forked from github/dataease
commit
b205111806
@ -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)))
|
||||
|
@ -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('校验成功')
|
||||
|
Loading…
Reference in New Issue
Block a user