You are here

protected function DatabaseTasks_pgsql::checkBinaryOutputSuccess in Drupal 7

Verify that a binary data roundtrip returns the original string.

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

File

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';
}