}
if($row=$this->_fetchobject($res)) {
$this->_debug("get: retrieved data; exp time is " . $row->exptime);
- return $this->_unserialize($row->value);
+ return $this->_unserialize($this->_blobdecode($row->value));
} else {
$this->_debug('get: no matching rows');
}
function _blobencode($str) {
return $str;
}
+ function _blobdecode($str) {
+ return $str;
+ }
abstract function _doinsert($table, $vals);
abstract function _doquery($sql);
$dbw =& wfGetDB( DB_MASTER );
return $dbw->encodeBlob($s);
}
+ function _blobdecode($s) {
+ $dbw =& wfGetDB( DB_MASTER );
+ return $dbw->decodeBlob($s);
+ }
function getTableName() {
if ( !$this->tableInitialised ) {
$dbw =& wfGetDB( DB_MASTER );
return $b;
}
+ function decodeBlob($b) {
+ return $b;
+ }
+
/**
* Read and execute SQL commands from a file.
* Returns true on success, error string on failure