forked from github/dataease
fix(数据源): DataEase v2 在 Excel 数据比较多的情况上传后数据为空 #7722
This commit is contained in:
parent
66cae1289a
commit
db00585e67
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user