mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 11:21:44 +08:00
fix: 修复 SQL Server 过滤异常
This commit is contained in:
@@ -164,7 +164,7 @@ public abstract class Provider {
|
||||
Matcher matcher = compile.matcher(s);
|
||||
while (matcher.find()) {
|
||||
String v = matcher.group();
|
||||
s = s.replaceAll(v, "N" + v.replace("-DENS-", ""));
|
||||
s = s.replaceAll(Pattern.quote(v), "N" + v.replace("-DENS-", ""));
|
||||
}
|
||||
return s;
|
||||
}
|
||||
@@ -283,7 +283,7 @@ public abstract class Provider {
|
||||
Integer lport = Provider.getLPorts().get(datasourceId);
|
||||
if (lport != null) {
|
||||
configuration.setLPort(lport);
|
||||
if (Provider.getSessions().get(datasourceId) == null || !Provider.getSessions().get(datasourceId).isConnected()) {
|
||||
if (Provider.getSessions().get(datasourceId) == null || !Provider.getSessions().get(datasourceId).isConnected()) {
|
||||
Session session = initSession(configuration);
|
||||
Provider.getSessions().put(datasourceId, session);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user