dibley1973 / StoredProcedureFramework

A .Net framework for calling stored procedures
MIT License
4 stars 2 forks source link

Framework reports missing field instead of wrong DataType #5

Closed dibley1973 closed 8 years ago

dibley1973 commented 8 years ago

There may be an issue where the framework reports a field is not in the ResultSet, when in fact it is declared as actually just the wrong DataType. This was discovered today at work. issue needs investigating further.

dibley1973 commented 8 years ago

A new stored procedure [dbo].[IssueNumberFive] along with an integration test class IssueNumberFiveTests with two tests which replicate the issue. Now to determine why the wrong exception message is being thrown.

dibley1973 commented 8 years ago

It appears that although the error was handled correctly the wrong message was supplied in HandleArgumentException. The incorrect message was ExceptionMessages.FieldNotFoundForName and should have been ExceptionMessages.IncorrectReturnType.

This has now been corrected and will be present in the code which will become v0.6 when it is released.

dibley1973 commented 8 years ago

Issue is fixed and is available in MASTER now. Will be available in v0.6 once released.