Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChangeTypeTo Extension Method bug. #241

Open
hlesesne opened this issue Nov 4, 2010 · 0 comments
Open

ChangeTypeTo Extension Method bug. #241

hlesesne opened this issue Nov 4, 2010 · 0 comments

Comments

@hlesesne
Copy link

hlesesne commented Nov 4, 2010

SubSonic/Extensions/Objects.cs line 83 - is currently:
else if (conversionType == typeof(Int64) && value.GetType() == typeof(int))
accounting for a SQLLite provider problem... Shouldn't this actually be:
else if (conversionType == typeof(int) && value.GetType() == typeof(Int64))

I should always be able to convert int(32) to Int64 - just not the other way around.

or shouldn't it even be handled in the provider itself and not down in your extension method?

Thanks,

Hal

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

No branches or pull requests

1 participant