Bug #44504 | Connector/ODBC gives error with custom UCA collation | ||
---|---|---|---|
Submitted: | 27 Apr 2009 23:11 | Modified: | 13 May 2011 22:57 |
Reporter: | Miguel K | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / ODBC | Severity: | S3 (Non-critical) |
Version: | 5.1.8 | OS: | Windows |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[27 Apr 2009 23:11]
Miguel K
[4 May 2009 14:09]
Susanne Ebrecht
Many thanks for writing a bug report. This looks more like a MyODBC problem then a charset problem. Set category to MyODBC.
[4 May 2009 14:18]
Tonci Grgin
Hi Miguel. I see no point in both attached asp pages as connection string is not visible there. Can you show exact connection strings used please.
[4 May 2009 16:53]
Miguel K
Here you go: DRIVER={MySQL ODBC 5.1 Driver};SERVER=localhost;DATABASE=diction9;USER=xxxx;PASSWORD=xxxxx;charset=utf8;OPTION=3
[13 May 2011 22:57]
Miguel K
Wow, two years. I can confirm that this still does not work with MySQL 5.5.10 Connector/ODBC 5.1.8 Though the error message has changed to: ERROR [07006] [MySQL][ODBC 5.1 Driver][mysqld-5.5.10]Source character set not supported by client The source character set is utf8, which is definitely supported by Windows. The problem seems to be that Windows is rejecting a collation that it doesn't recognize. I have no idea why Windows would care what the collation is as long as it knows that the data is UTF-8. I hope a fix can be found soon. Here is a work-around: This works: SELECT col1 collate utf8_unicode_ci AS col1 FROM test2 While this still does not: SELECT col1 AS col1 FROM test2
[22 May 2018 20:16]
Mor Sagmon
Same error for me, with ODBC 5.3. Miguel's workaround did not fix it for me. I have charset=utf8 and collation=utf8_general_ci (or utf8_unicode_ci gives the same error).