You are here

protected function Tasks::checkStandardConformingStringsSuccess in Drupal 10

Verifies the standard_conforming_strings setting.

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

File

core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php, line 240

Class

Tasks
Specifies installation tasks for PostgreSQL databases.

Namespace

Drupal\pgsql\Driver\Database\pgsql\Install

Code

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