Oracle dblink bug

This commit is contained in:
sunkaixuna 2021-12-29 19:18:41 +08:00
parent da980755b2
commit 26c1a9ee49

View File

@ -17,7 +17,7 @@ namespace SqlSugar
{ {
sql = sql.Replace("+@", "+:"); sql = sql.Replace("+@", "+:");
if (sql.HasValue()&&sql.Contains("@")) { if (sql.HasValue()&&sql.Contains("@")) {
var exceptionalCaseInfo = Regex.Matches(sql, @"\'[^\=]*?\@.*?\'| [\.,\w]+\@[\.,\w]+ | [\.,\w]+\@[\.,\w]+"); var exceptionalCaseInfo = Regex.Matches(sql, @"\'[^\=]*?\@.*?\'| [\.,\w]+\@[\.,\w]+ | [\.,\w]+\@[\.,\w]+|[\.,\w]+\@[\.,\w]+ ");
if (exceptionalCaseInfo != null) { if (exceptionalCaseInfo != null) {
foreach (var item in exceptionalCaseInfo.Cast<Match>()) foreach (var item in exceptionalCaseInfo.Cast<Match>())
{ {