[MDEV-8362] dash '-' is not recognized in charset armscii8 on select where query Created: 2015-06-23 Updated: 2015-07-14 Resolved: 2015-07-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 5.1.67, 5.2.14, 5.3.12, 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1.6 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Yingyu Cheng | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Environment: |
|
||
| Attachments: |
|
| Sprint: | 10.1.6-2 |
| Description |
|
It looks like that, the db server could not query if the value has a dash "-" inside, as far as I know, the affected charset is armscii8. For more see the repo command as below, and the db dump is attached:
|
| Comments |
| Comment by Elena Stepanova [ 2015-06-24 ] | |||||||||||||
|
Thanks for the report. Same on MySQL 5.7, so if it's a bug, it's an upstream issue. | |||||||||||||
| Comment by Alexander Barkov [ 2015-06-26 ] | |||||||||||||
|
It seems that the problem happens during utf8-to-armscii8 conversion because
So utf8 dash '-' is erroneously converted to armscii 0xAC instead of 0x2D:
This should be fixed. There is also a problem in the collation definition. It should probably sort the double coded characters as equal (e.g. armscii 0x2D should be equal to 0xAC). | |||||||||||||
| Comment by Yingyu Cheng [ 2015-06-27 ] | |||||||||||||
|
@Elena Stepanova, I did not test or report to upstream MySQL. Do I need to do that? Or maybe you can help? | |||||||||||||
| Comment by Elena Stepanova [ 2015-06-27 ] | |||||||||||||
|
winguse, |