Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
5.1.67, 5.2.14, 5.3.12, 5.5(EOL), 10.0(EOL), 10.1(EOL)
-
# mysql --version
mysql Ver 15.1 Distrib 5.5.39-MariaDB, for debian-linux-gnu (x86_64) using readline 5.1
-
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) |
|