When using Mysql 8 and drupal 7 core patch (https://www.drupal.org/project/drupal/issues/2978575), the function domain_bootstrap generate error when checking system table with "db_query"

The path replace the "db_query" call by a db_select

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DrDam created an issue. See original summary.

mmjvb’s picture

Status: Active » Needs review

When a patch is provided, Status should be Needs review.

agentrickard’s picture

Looks good.

  • agentrickard committed 24259a1 on 7.x-3.x authored by DrDam
    Issue #3084622 by DrDam: Error when checking system table on Mysql8
    
agentrickard’s picture

Status: Needs review » Fixed

Committed!

agentrickard’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

limuhob’s picture

The same should be done for 'language_default' initialization in domain_conf.module line 44 too.

// Language handling is a special case.
      if ($key == 'language_default') {
        $table = domain_get_primary_table('system');
        $language = (bool) db_query("SELECT status FROM $table WHERE name = 'locale' AND type = 'module'")->fetchField();

When using MySQL8 'language_default' initialization failed.