Update 达梦

This commit is contained in:
sunkaixuan
2025-11-06 09:35:43 +08:00
parent fc0d840bdd
commit 1efdcc4abb
2 changed files with 14 additions and 11 deletions

View File

@@ -206,9 +206,11 @@ namespace SqlSugar
} }
private static string[] KeyWord =new string []{ ":asc", "@asc", ":desc", "@desc","@month", ":month", ":day","@day","@group", ":group",":index", "@index", "@order", ":order", "@user", "@level", ":user", ":level",":type","@type", ":year", "@year" }; private static string[] KeyWord =new string []{ ":asc", "@asc", ":desc", "@desc","@month", ":month", ":day","@day","@group", ":group",":index", "@index", "@order", ":order", "@user", "@level", ":user", ":level",":type","@type", ":year", "@year" };
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() && this.CommandType != CommandType.StoredProcedure)
{
if (parameters.HasValue() && parameters.Count(it => it.ParameterName.ToLower().IsIn(KeyWord)) > 0) if (parameters.HasValue() && parameters.Count(it => it.ParameterName.ToLower().IsIn(KeyWord)) > 0)
{ {
int i = 0; int i = 0;
@@ -223,6 +225,7 @@ namespace SqlSugar
} }
} }
} }
}
return sql; return sql;
} }

View File

@@ -2,7 +2,7 @@
<package > <package >
<metadata> <metadata>
<id>SqlSugarCore</id> <id>SqlSugarCore</id>
<version>5.1.4.207</version> <version>5.1.4.208-preview10</version>
<authors>sunkaixuan</authors> <authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners> <owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl> <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>