[MDEV-26605] Creating table with primary key constraint name fails when using C# connector Created: 2021-09-14 Updated: 2021-09-15 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Create Table |
| Affects Version/s: | 10.6.0, 10.6.1, 10.6.2, 10.6.3, 10.6.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Andreas Lennartz | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | regression-10.6 | ||
| Environment: |
Current MySql Connector (8.0.26) |
||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
I am using C# (.NET 5.0) and ADO.NET to execute statements on MariaDb. For this, I am using the MySql connector (current version: 8.0.26) to run statements on the database. string sql = $@"CREATE TABLE `test` ( Though the table is created, this code throws an exception with MariaDb 10.6.4: It worked fine on MariaDb 10.5.12. When I create named unique and foreign key constraints I don't get an exception. I am guessing it is related to the switch to utf8mb4 as default collation introduced with 10.6. See attached file for the full example code in C#. |