Update oracle

This commit is contained in:
sunkaixuan 2024-12-21 18:04:58 +08:00
parent 334c4b4dd7
commit 1e25b1785d

View File

@ -3,7 +3,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
using System.Data.Common; using System.Data.Common;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -145,10 +145,10 @@ namespace SqlSugar
return sqlCommand; 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[] 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); sql = ReplaceKeyWordWithAd(sql, parameters);
if (parameters.HasValue()) if (parameters.HasValue()&&this.CommandType!=CommandType.StoredProcedure)
{ {
foreach (var Parameter in parameters.OrderByDescending(x=>x.ParameterName?.Length)) foreach (var Parameter in parameters.OrderByDescending(x=>x.ParameterName?.Length))
{ {