Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DatabaseTasks_pgsql::checkBinaryOutputSuccess

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

Class

DatabaseTasks_pgsql
@file Install functions for PostgreSQL embedded database engine.

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.