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

FIX | DbType when it is set to Time in SqlEnums #1169

Closed
wants to merge 1 commit into from

Conversation

JRahnama
Copy link
Contributor

Fixes #1164

Looks like an oversight porting from SDS. When DBType is set to Time SDS is behaving differently than MDS. MDS acts same as SqlDbType whereas in SqlEnums There are two different methods GetMetaTypeFromDbType and GetMetaTypeFromSqlDbType changing the Switch statement in GetMetaTypeFromDbType to same as SDS solved the issue.

@JRahnama JRahnama changed the title FIX | DbType FIX | DbType when it is set to Time in SqlEnums Jul 13, 2021
@JRahnama JRahnama closed this Jul 13, 2021
@JRahnama
Copy link
Contributor Author

The change was made in 2019 by the PR #269. The way driver acts is by design and it is not a bug or issue.

@JRahnama JRahnama deleted the issue1161 branch September 29, 2022 21:23
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.

InvalidCastException when using DateTime as parameter value for DbType.Time
1 participant