function db_decode_blob

6.x database.pgsql.inc db_decode_blob($data)
6.x database.mysqli.inc db_decode_blob($data)
6.x database.mysql.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 calls to db_decode_blob()
cache_get in drupal-6.x/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 drupal-6.x/modules/update/update.module
Retrieve data from the private update status cache table.

File

drupal-6.x/includes/database.pgsql.inc, line 355
Database interface code for PostgreSQL database servers.

Code

function db_decode_blob($data) {
  return pg_unescape_bytea($data);
}