Skip to content

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

Closed
JRahnama wants to merge 1 commit into
dotnet:mainfrom
JRahnama:issue1161
Closed

FIX | DbType when it is set to Time in SqlEnums#1169
JRahnama wants to merge 1 commit into
dotnet:mainfrom
JRahnama:issue1161

Conversation

@JRahnama

Copy link
Copy Markdown
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
Copy Markdown
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