mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
Db: do not let the db adapter handle binary...
...data as this causes problems with Postgres and quoteBinary
This commit is contained in:
parent
38eaf4036b
commit
82c5b10eef
@ -244,6 +244,8 @@ class Db extends DbConnection
|
||||
|
||||
public function fetchActivityLogEntry($checksum)
|
||||
{
|
||||
$db = $this->db();
|
||||
|
||||
$sql = 'SELECT id, object_type, object_name, action_name,'
|
||||
. ' old_properties, new_properties, author, change_time,'
|
||||
. ' %s AS checksum, %s AS parent_checksum'
|
||||
@ -255,9 +257,8 @@ class Db extends DbConnection
|
||||
$this->dbHexFunc('parent_checksum')
|
||||
);
|
||||
|
||||
return $this->db()->fetchRow(
|
||||
$sql,
|
||||
$this->quoteBinary(Util::hex2binary($checksum))
|
||||
return $db->fetchRow(
|
||||
$db->quoteInto($sql, $this->quoteBinary(Util::hex2binary($checksum)))
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user