function db_decode_blob in Drupal 4
Same name in this branch
- 4 includes/database.mysqli.inc \db_decode_blob()
- 4 includes/database.mysql.inc \db_decode_blob()
- 4 includes/database.pgsql.inc \db_decode_blob()
Same name and namespace in other branches
- 5 includes/database.mysqli.inc \db_decode_blob()
- 5 includes/database.mysql.inc \db_decode_blob()
- 5 includes/database.pgsql.inc \db_decode_blob()
- 6 includes/database.mysqli.inc \db_decode_blob()
- 6 includes/database.mysql.inc \db_decode_blob()
- 6 includes/database.pgsql.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
1 call to db_decode_blob()
- cache_get in includes/
bootstrap.inc - Return data from the persistent cache.
File
- includes/
database.pgsql.inc, line 326 - Database interface code for PostgreSQL database servers.
Code
function db_decode_blob($data) {
return pg_unescape_bytea($data);
}