Db: a few more PostgreSQL fixes

This commit is contained in:
Thomas Gelf 2016-03-01 04:20:39 +01:00
parent 2704588a3a
commit ed4f34272b

View File

@ -172,7 +172,7 @@ class Db extends DbConnection
) )
)->join( )->join(
array('lt' => $smaller), array('lt' => $smaller),
null, '1 = 1',
array() array()
); );
@ -183,7 +183,12 @@ class Db extends DbConnection
{ {
$sql = 'SELECT * FROM director_activity_log WHERE id = ' . (int) $id; $sql = 'SELECT * FROM director_activity_log WHERE id = ' . (int) $id;
return $this->db()->fetchRow($sql); $result = $this->db()->fetchRow($sql);
if (is_resource($result->checksum)) {
$result->checksum = stream_get_contents($result->checksum);
}
return $result;
} }
public function fetchActivityLogChecksumById($id, $binary = true) public function fetchActivityLogChecksumById($id, $binary = true)