Same name in this branch
  1. 6.x includes/database.pgsql.inc \db_decode_blob()
  2. 6.x includes/database.mysqli.inc \db_decode_blob()
  3. 6.x includes/database.mysql.inc \db_decode_blob()
Same name and namespace in other branches
  1. 4.6.x includes/database.pgsql.inc \db_decode_blob()
  2. 4.6.x includes/database.mysql.inc \db_decode_blob()
  3. 4.7.x includes/database.pgsql.inc \db_decode_blob()
  4. 4.7.x includes/database.mysqli.inc \db_decode_blob()
  5. 4.7.x includes/database.mysql.inc \db_decode_blob()
  6. 5.x includes/database.pgsql.inc \db_decode_blob()
  7. 5.x includes/database.mysqli.inc \db_decode_blob()
  8. 5.x includes/database.mysql.inc \db_decode_blob()

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 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

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