protected function DatabaseTasks_pgsql::checkBinaryOutputSuccess

Verify that a binary data roundtrip returns the original string.

1 call to DatabaseTasks_pgsql::checkBinaryOutputSuccess()
DatabaseTasks_pgsql::checkBinaryOutput in drupal/includes/database/pgsql/install.inc
Check Binary Output.

File

drupal/includes/database/pgsql/install.inc, line 131
Install functions for PostgreSQL embedded database engine.

Class

DatabaseTasks_pgsql

Code

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