Registry Mirror
Skip to content

Conversation

@kashifsoofi

Copy link
Copy Markdown

TypeHandlers can override the logic for built-in SQL data types (int,
byte, DateTime etc.) when these are return values via
ITypeHandler.Parse, but ITypeHandler.SetValue was never being used for
parameters. Moved the typeHandlers.TryGetValue() call up to make sure a
type handler is always used if available.

TypeHandlers can override the logic for built-in SQL data types (int,
byte, DateTime etc.) when these are return values via
ITypeHandler.Parse, but ITypeHandler.SetValue was never being used for
parameters. Moved the typeHandlers.TryGetValue() call up to make sure a
type handler is always used if available.
@kashifsoofi

Copy link
Copy Markdown
Author

Credit goes to Matt Wilkinson for original change (#177)

@drusellers

Copy link
Copy Markdown

👍 want

@NickCraver

Copy link
Copy Markdown
Member

While I can see the use here, unfortunately this change can't really happen without a lot more love. There are no handlers for other types in the pipe such as most IEnumerable types, or any custom types where no such mapping actually exists. If you run the unit tests programs (e.g. build and \Tests\bin\Debug\Smackdown.exe), you can see a great many downstream breaks due to how parameters are handled in general.

@NickCraver

Copy link
Copy Markdown
Member

Since we can't merge either - I'll consolidate this into #177 so we can track the issue in one place.

@NickCraver NickCraver closed this Oct 15, 2015
@kwaclaw

kwaclaw commented Sep 22, 2016

Copy link
Copy Markdown

It seems #177 has been closed as well, without any resolution to the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants