Browse Source

Update oracle

pull/31/head
sunkaixuan 2 years ago
parent
commit
4f08f460e4
  1. 4
      Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs

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

@ -121,14 +121,14 @@ namespace SqlSugar
CheckConnection();
return sqlCommand;
}
private static string[] KeyWord = new string[] { "@order", ":order", "@user", "@level", ":user", ":level", ":type", "@type" };
private static string ReplaceKeyWordParameterName(string sql, SugarParameter[] parameters)
{
if (parameters.HasValue())
{
foreach (var Parameter in parameters)
{
if (Parameter.ParameterName != null && Parameter.ParameterName.ToLower().IsIn("@order",":order","@user", "@level", ":user", ":level"))
if (Parameter.ParameterName != null && Parameter.ParameterName.ToLower().IsIn(KeyWord))
{
if (parameters.Count(it => it.ParameterName.StartsWith(Parameter.ParameterName)) == 1)
{

Loading…
Cancel
Save