Skip to content

System.Char parameters not supported. #412

Closed

Description

@marcrocny

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.

Activity

  1. self-assigned this
    on Dec 20, 2017
  2. added 2 commits that reference this issue on Dec 20, 2017
    f2d25d1
    0eb9518
  3. bgrainger commented on Dec 20, 2017

    @bgrainger
    Member

    Fixed in 0.33.2.

  4. added theissue type on Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions