Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8362

dash '-' is not recognized in charset armscii8 on select where query

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 5.1.67, 5.2.14, 5.3.12, 5.5, 10.0, 10.1
    • 10.1.6
    • Character Sets
    • # 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)
       

      Attachments

        Activity

          People

            bar Alexander Barkov
            winguse Yingyu Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.