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

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.