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

System.Char parameters not supported. #412

Closed
marcrocny opened this issue Dec 20, 2017 · 1 comment
Closed

System.Char parameters not supported. #412

marcrocny opened this issue Dec 20, 2017 · 1 comment
Assignees
Labels

Comments

@marcrocny
Copy link
Contributor

@marcrocny marcrocny commented Dec 20, 2017

Attempting to use a char MySqlParameter with type Char causes an exception at AppendSqlString():

System.NotSupportedException: Parameter type Char (DbType: StringFixedLength) not currently supported.

Workaround: call ToString() on the character value when creating the MySqlParameter, but kind of annoying. Requires a shim or property type change if using Dapper or other ORM. Connector/NET handles this OOTB.


Seems like it should be a quick fix, I'll try to come back to this later. Trying to get tests to pass locally before modifying anything.

@bgrainger bgrainger self-assigned this Dec 20, 2017
@bgrainger bgrainger added the bug label Dec 20, 2017
@bgrainger
Copy link
Member

@bgrainger bgrainger commented Dec 20, 2017

Fixed in 0.33.2.

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