fix: 修复 SQL Server 过滤异常

This commit is contained in:
junjun
2025-08-15 10:27:28 +08:00
parent 65a17c5032
commit e1d710d896

View File

@@ -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);
}