Browse Source

Update Oracle & dm format sql

pull/30/head
sunkaixuan 2 years ago
parent
commit
5ca1e63872
  1. 4
      Src/Asp.Net/SqlSugar/Realization/Dm/DmProvider.cs
  2. 4
      Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs

4
Src/Asp.Net/SqlSugar/Realization/Dm/DmProvider.cs

@ -32,6 +32,10 @@ namespace SqlSugar
{
break;
}
else if (item.Value != null && item.Value.ObjToString().Contains("||") && Regex.IsMatch(item.Value.Replace(" ", "").Trim(), @"\|\|@\w+\|\|"))
{
break;
}
sql = sql.Replace(item.Value, item.Value.Replace("@", UtilConstants.ReplaceKey));
}
}

4
Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs

@ -29,6 +29,10 @@ namespace SqlSugar
{
break;
}
else if (item.Value != null && item.Value.ObjToString().Contains("||") && Regex.IsMatch(item.Value.Replace(" ","").Trim(), @"\|\|@\w+\|\|"))
{
break;
}
sql = sql.Replace(item.Value, item.Value.Replace("@", UtilConstants.ReplaceKey));
}
}

Loading…
Cancel
Save