mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
Access bug
This commit is contained in:
@@ -71,7 +71,12 @@ namespace SqlSugar.Access
|
|||||||
if (parameters.HasValue())
|
if (parameters.HasValue())
|
||||||
{
|
{
|
||||||
OleDbParameter[] ipars = GetSqlParameter(parameters);
|
OleDbParameter[] ipars = GetSqlParameter(parameters);
|
||||||
|
if (ipars != null)
|
||||||
|
{
|
||||||
|
ipars = ipars.OrderBy(it => sql.IndexOf(it.ParameterName)).ToArray();
|
||||||
|
}
|
||||||
sqlCommand.Parameters.AddRange(ipars);
|
sqlCommand.Parameters.AddRange(ipars);
|
||||||
|
|
||||||
}
|
}
|
||||||
CheckConnection();
|
CheckConnection();
|
||||||
return sqlCommand;
|
return sqlCommand;
|
||||||
|
Reference in New Issue
Block a user