Community Documentation

db_decode_blob

5 database.mysql.inc db_decode_blob($data)
5 database.pgsql.inc db_decode_blob($data)
5 database.mysqli.inc db_decode_blob($data)
6 database.mysql.inc db_decode_blob($data)
6 database.pgsql.inc db_decode_blob($data)
6 database.mysqli.inc 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.

File

includes/database.pgsql.inc, line 355
Database interface code for PostgreSQL database servers.

Code

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