Skip to content

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

@billlx

Description

@billlx

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions