db_decode_blob
includes/database.pgsql.inc, line 355
- 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
- Database abstraction layer
- Allow the use of different database servers using the same code base.
- 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
<?php
function db_decode_blob($data) {
return pg_unescape_bytea($data);
}
?>