Skip to content

PW 3.0.165, Illegal argument error with ~= selector and mysql 8.0+ ? #1240

@celfred

Description

@celfred

Hello,
Not sure this is an issue with PW, but I mentionned it on the PW Talk (https://processwire.com/talk/topic/24229-contains-all-words-selector-~-triggers-an-error-since-updating-to-30165/?tab=comments#comment-205596) and was advised to maybe submit an issue here, so here's the thing :

I have updated my Ubuntu 20.04 OS and my Processwire at the same time so I am with :

  • PHP 7.4.3
  • MySQL 8.0.21
  • PW 3.0.165

And all my localhost pages having the "~=" operator in my selectors throw an error :

PDOException #HY000
SQLSTATE[HY000]: General error: 3685 Illegal argument to a regular expression.

As I said on the forum, if I change the operator with either "^=" or "~*=", the error disappears (but then of course, I lose the ~= capabilities of whole word only selection).

Hope it helps...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions