Update 达梦

This commit is contained in:
sunkaixuan
2024-12-10 12:34:02 +08:00
parent 8cc07617d3
commit f2f254d0cc
2 changed files with 11 additions and 1 deletions

View File

@@ -183,10 +183,20 @@ namespace SqlSugar
{
sqlParameter.DmSqlType = DmDbType.Cursor;
}
if (IsSpOutPutParameter(sqlParameter))
{
sqlParameter.ParameterName = sqlParameter.ParameterName.Replace("@", ":");
}
++index;
}
return result;
}
private bool IsSpOutPutParameter(DmParameter sqlParameter)
{
return sqlParameter.Direction == ParameterDirection.Output && this.CommandType == CommandType.StoredProcedure;
}
private static string[] KeyWord =new string []{ "@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)
{