db_decode_blob

Versions
4.6 – 6
db_decode_blob($data)

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

▾ 2 functions call db_decode_blob()

cache_get in includes/cache.inc
Return data from the persistent cache. Data may be stored as either plain text or as serialized data. cache_get will automatically return unserialized objects and arrays.
_update_cache_get in modules/update/update.module
Retrieve data from the private update status cache table.

Code

includes/database.pgsql.inc, line 355

<?php
function db_decode_blob($data) {
  return pg_unescape_bytea($data);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.