protected function Tasks::checkBinaryOutputSuccess

Verify that a binary data roundtrip returns the original string.

1 call to Tasks::checkBinaryOutputSuccess()
Tasks::checkBinaryOutput in drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php
Check Binary Output.

File

drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 173
Definition of Drupal\Core\Database\Driver\pgsql\Install\Tasks

Class

Tasks
PostgreSQL specific install functions

Namespace

Drupal\Core\Database\Driver\pgsql\Install

Code

protected function checkBinaryOutputSuccess() {
  $bytea_output = db_query("SELECT 'encoding'::bytea AS output")
    ->fetchField();
  return $bytea_output == 'encoding';
}