mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update oracle
This commit is contained in:
parent
334c4b4dd7
commit
1e25b1785d
@ -3,7 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
@ -145,10 +145,10 @@ namespace SqlSugar
|
||||
return sqlCommand;
|
||||
}
|
||||
private static string[] KeyWord = new string[] { "@month",":month",":day", "@day","@group",":group",":index","@index","@order", ":order", "@user", "@level", ":user", ":level", ":type", "@type",":year","@year","@date",":date" };
|
||||
private static string ReplaceKeyWordParameterName(string sql, SugarParameter[] parameters)
|
||||
private string ReplaceKeyWordParameterName(string sql, SugarParameter[] parameters)
|
||||
{
|
||||
sql = ReplaceKeyWordWithAd(sql, parameters);
|
||||
if (parameters.HasValue())
|
||||
if (parameters.HasValue()&&this.CommandType!=CommandType.StoredProcedure)
|
||||
{
|
||||
foreach (var Parameter in parameters.OrderByDescending(x=>x.ParameterName?.Length))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user