While discovering parameters for a Stored Procedure, the DbParameters are
being sorted to match the order used in the parameter map.
// Re-sort DbParameters to match order used in the parameterMap
IDbDataParameter[] sortedDbParameters = new IDbDataParameter[
commandParameters.Length];
for (int i = 0; i < _statement.ParameterMap.Properties.Count;
i++)
{
sortedDbParameters[i] = Search(session,
_preparedStatement.DbParameters, _statement.ParameterMap.Properties[i], i);
}
_preparedStatement.DbParameters = sortedDbParameters;
Inside the Search function the property is found by name using
if (property.ColumnName.Equals(parameterName))
The parameterName from the stored procedure is @RecID but in my parameter
map the column is defined as RecId. This worked fine in 1.3.1 are we going
to case sensitive matching with 1.5.1/svn? I'm using the current from
svn...
Thanks
Mike