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

POSIX collating elements are not supported

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 10.0.14
    • N/A
    • OTHER
    • Ubuntu 14.04

    Description

      When running the following queries, you will get an error, which in my case breaks replication as the master is currently MySQL 5.5.40

      SELECT ' ' REGEXP '[[.space.]]';
       
      SELECT '.' REGEXP '[[.period.]]';

      Error:

      ERROR 1139 (42000): Got error 'POSIX collating elements are not supported at offset 1' from regexp

      Attachments

        Activity

          Same issue with a module for a shopping cart. Currently looking into whether or not this can be easily swapped out in the code, although since the module isn't developed internally, that's likely not going to be an all too easy task.

          Would appreciate a fix for this issue.

          CmdrSharp Marcus Frolander added a comment - Same issue with a module for a shopping cart. Currently looking into whether or not this can be easily swapped out in the code, although since the module isn't developed internally, that's likely not going to be an all too easy task. Would appreciate a fix for this issue.

          Same issue with a module for a shopping cart. Currently looking into whether or not this can be easily swapped out in the code, although since the module isn't developed internally, that's likely not going to be an all too easy task.

          Would appreciate a fix for this issue.

          CmdrSharp Marcus Frolander added a comment - Same issue with a module for a shopping cart. Currently looking into whether or not this can be easily swapped out in the code, although since the module isn't developed internally, that's likely not going to be an all too easy task. Would appreciate a fix for this issue.
          rjasdf Rick James (Inactive) added a comment - - edited

          SELECT ' ' REGEXP '\\{20}'

          --> 0 in MariaDB 10.2.2 and Percona 5.6.22-71.0; so perhaps a poor constant?

          SELECT ' ' REGEXP '\\x{20}';

          --> 1 for 10.2.2, but 0 for 5.6.22 – Suggest you take note of this incompatibility.

          rjasdf Rick James (Inactive) added a comment - - edited SELECT ' ' REGEXP '\\{20}' --> 0 in MariaDB 10.2.2 and Percona 5.6.22-71.0; so perhaps a poor constant? SELECT ' ' REGEXP '\\x{20}' ; --> 1 for 10.2.2, but 0 for 5.6.22 – Suggest you take note of this incompatibility.

          Yes. MariaDB uses PCRE and what you observed are the consequences of this fact.

          PCRE supports \ddd, \xhh, and \x{hhh} for specifying characters by their codes. That's why you've got a mismatch in first query and match in the second. MySQL and Percona use Henry Spencer's library which does not support \x{hhh} syntax.

          serg Sergei Golubchik added a comment - Yes. MariaDB uses PCRE and what you observed are the consequences of this fact. PCRE supports \ddd , \xhh , and \x{hhh } for specifying characters by their codes. That's why you've got a mismatch in first query and match in the second. MySQL and Percona use Henry Spencer's library which does not support \x{hhh } syntax.

          It's not something we can fix. PCRE is no longer developed. PCRE2 is the currently supported version, but it still returns the same error, unfortunately.

          serg Sergei Golubchik added a comment - It's not something we can fix. PCRE is no longer developed. PCRE2 is the currently supported version, but it still returns the same error, unfortunately.

          People

            bar Alexander Barkov
            TheReaper Johann
            Votes:
            1 Vote for this issue
            Watchers:
            7 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.