protected function DatabaseTasks_pgsql::checkBinaryOutputSuccess

7.x install.inc protected DatabaseTasks_pgsql::checkBinaryOutputSuccess()

Verify that a binary data roundtrip returns the original string.

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

File

drupal-7.x/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');
}