function Tasks::checkStandardConformingStringsSuccess

Same name in other branches
  1. 9 core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php \Drupal\pgsql\Driver\Database\pgsql\Install\Tasks::checkStandardConformingStringsSuccess()
  2. 10 core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php \Drupal\pgsql\Driver\Database\pgsql\Install\Tasks::checkStandardConformingStringsSuccess()
  3. 11.x core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php \Drupal\pgsql\Driver\Database\pgsql\Install\Tasks::checkStandardConformingStringsSuccess()

Verifies the standard_conforming_strings setting.

1 call to Tasks::checkStandardConformingStringsSuccess()
Tasks::checkStandardConformingStrings in core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
Ensures standard_conforming_strings setting is 'on'.

File

core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 231

Class

Tasks
Specifies installation tasks for PostgreSQL databases.

Namespace

Drupal\Core\Database\Driver\pgsql\Install

Code

protected function checkStandardConformingStringsSuccess() {
    $standard_conforming_strings = Database::getConnection()->query("SHOW standard_conforming_strings")
        ->fetchField();
    return $standard_conforming_strings == 'on';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.