Commit 9226076f authored by Marc Gravell's avatar Marc Gravell

Merge pull request #170 from tuespetre/master

Fixed regression with sproc tests
parents 1a935bd7 9ff6cd17
......@@ -4396,6 +4396,11 @@ protected void AddParameters(IDbCommand command, SqlMapper.Identity identity)
// The parameters were added to the command, but not the
// DynamicParameters until now.
foreach (IDbDataParameter param in command.Parameters)
{
// If someone makes a DynamicParameters with a template,
// then explicitly adds a parameter of a matching name,
// it will already exist in 'parameters'.
if (!parameters.ContainsKey(param.ParameterName))
{
parameters.Add(param.ParameterName, new ParamInfo
{
......@@ -4408,6 +4413,7 @@ protected void AddParameters(IDbCommand command, SqlMapper.Identity identity)
Value = param.Value
});
}
}
// Now that the parameters are added to the command, let's place our output callbacks
var tmp = outputCallbacks;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment