Skip to content

Fixes connecting to newer MariaDB server (>=10.10.1) using MySql.Data connector. Enables support for utf8mb3 in older connector.

License

Notifications You must be signed in to change notification settings

jeffraska/Jf.MySql.Data.Collations

Repository files navigation

Jf.MySql.Data.Collations

GitHub License Nuget

This library solves connection problems of MySQL Connector/NET to newest versions of MariaDB (>=10.10.1) with implemented UCA-14.0.0 collations.

Licensing

This library is released under MIT license.

How it works

Library modifies SHOW COLLATION query using BaseCommandInterceptor to prevent fetching collations with NULL Id's. There is also small piece of code which append utf8mb3 charset to MySql.Data's internal mapping Dictionary allowing to read fields with utf8mb3 collations.

Usage

  1. Install NuGet package

  2. Append following line to your connection string

    ;commandinterceptors=Jf.MySql.Data.Collations.Interceptor,Jf.MySql.Data.Collations

  3. Call Utf8mb3.Enable() before opening first MySql connection.

About

Fixes connecting to newer MariaDB server (>=10.10.1) using MySql.Data connector. Enables support for utf8mb3 in older connector.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages