You are here

protected function Tasks::checkBinaryOutputSuccess in Drupal 10

Verify that a binary data roundtrip returns the original string.

1 call to Tasks::checkBinaryOutputSuccess()
Tasks::checkBinaryOutput in core/modules/pgsql/src/Driver/Database/pgsql/Install/Tasks.php
Check Binary Output.

File

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

Class

Tasks
Specifies installation tasks for PostgreSQL databases.

Namespace

Drupal\pgsql\Driver\Database\pgsql\Install

Code

protected function checkBinaryOutputSuccess() {
  $bytea_output = Database::getConnection()
    ->query("SHOW bytea_output")
    ->fetchField();
  return $bytea_output == 'escape';
}