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

Row.GetChar(int ordinal) always fails due to invalid cast #456

Closed
billlx opened this issue Mar 15, 2018 · 1 comment
Closed

Row.GetChar(int ordinal) always fails due to invalid cast #456

billlx opened this issue Mar 15, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@billlx
Copy link

billlx commented Mar 15, 2018

As currently implemented, this call always fails because the underlying data type returned by Row.GetValue(ordinal) is a string. The MySQL.Data behavior is to return the .NET char data type when the db field definition is char (with no length specification). This could perhaps be resolved by having Row.GetChar cast the Row.GetValue result to string and then applying subscripting, although I am not sure it would behave properly in all cases. In any event, the existing Row.GetChar API is non-functional.

@bgrainger bgrainger added the bug label Mar 15, 2018
@bgrainger bgrainger added this to the 1.0 milestone Mar 15, 2018
@bgrainger bgrainger self-assigned this Mar 24, 2018
@bgrainger
Copy link
Member

bgrainger commented Mar 28, 2018

Fixed in 0.38.0.

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

No branches or pull requests

2 participants