Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 5.1.67, 5.2.14, 5.3.12, 10.1, 10.0, 5.5
-
Fix Version/s: 10.1.6
-
Component/s: Character Sets
-
Labels:
-
Environment:# mysql --version
mysql Ver 15.1 Distrib 5.5.39-MariaDB, for debian-linux-gnu (x86_64) using readline 5.1
-
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:
MariaDB [bugtest]> create table test(columnname varchar(64) CHARACTER SET armscii8);
Query OK, 0 rows affected (0.07 sec)
MariaDB [bugtest]> insert into test values ('abc-def');
Query OK, 1 row affected (0.04 sec)
MariaDB [bugtest]> select * from test where columnname = 'abc-def';
Empty set (0.00 sec)
MariaDB [bugtest]> select * from test where columnname like 'abc%';
+------------+
| columnname |
+------------+
| abc-def |
+------------+
1 row in set (0.00 sec)
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Thanks for the report.
Same on MySQL 5.7, so if it's a bug, it's an upstream issue.
Alexander Barkov,
It does look like a bug to me, but I don't know how much this charset is supported.
If you decide it should be fixed, but prefer to treat it as an upstream bug, please report it at bugs.mysql.com (or maybe you know it has already been reported?). Alternatively, it can be fixed directly in MariaDB.