db_decode_blob

Definition

db_decode_blob($data)
includes/database.pgsql.inc, line 354

Description

Returns text from a Binary Large OBject value. In case of PostgreSQL decodes data after select from bytea field.

Parameters

$data Data to decode.

Return value

Decoded data.

Related topics

Namesort iconDescription
Database abstraction layerAllow the use of different database servers using the same code base.

Code

<?php
function db_decode_blob($data) {
  return pg_unescape_bytea($data);
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.