PDA

View Full Version : Possible bug in the new DbProvider.CreateParameter() method?


Jon Louthian
11-21-2006, 03:20 PM
It looks like there's a bug in the CreateParameter() method of the newly refactored DbProvider class. I believe it should be creating an instance of dbMetadata.ParameterType, instead of dbMetadata.ParameterDbType:

public IDbDataParameter CreateParameter()
{
return ObjectUtils.InstantiateType(dbMetadata.ParameterDb Type) as IDbDataParameter;
}

Thanks!

Mark Pollack
11-22-2006, 03:07 AM
Hi Jon,

Indeed . I've made the fix, you can get the latest form the daily download site. Thanks for pointing this out. The unit tests will now catch such silly mistakes.

- Mark