Compatibility with MySQL v8

Created on 29 December 2020, almost 4 years ago
Updated 12 May 2023, over 1 year ago

Problem/Motivation

Search returns an error if Drupal uses MYSQL v8

Steps to reproduce

Just search any query and look at the log. It outputs:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 3685 Illegal argument to a regular expression.: SELECT base_table.vid AS vid, base_table.nid AS nid
Dec 29 17:20:16 drupal: FROM
Dec 29 17:20:16 drupal: {node} base_table
Dec 29 17:20:16 drupal: INNER JOIN {node_field_data} node_field_data ON node_field_data.nid = base_table.nid
Dec 29 17:20:16 drupal: INNER JOIN {node__body} node__body ON node__body.entity_id = base_table.nid
Dec 29 17:20:16 drupal: WHERE (node_field_data.type = :db_condition_placeholder_0) AND (node__body.body_value REGEXP BINARY :db_condition_placeholder_1); Array
Dec 29 17:20:16  rupal: (
Dec 29 17:20:16 drupal:     [:db_condition_placeholder_0] => blog_post
Dec 29 17:20:16 drupal:     [:db_condition_placeholder_1] => [[::]]
Dec 29 17:20:16 drupal: )
πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain foreveryo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024