IcingaConfig: check for #655 only on MySQL

PostgreSQL binary checksums are always passed as hex
This commit is contained in:
Thomas Gelf 2016-03-02 21:40:35 +01:00
parent eecb3cddf0
commit dca0ea63af

View File

@ -320,7 +320,8 @@ class IcingaConfig
ini_set('memory_limit', '768M');
ini_set('max_execution_time', 0);
if ($this->db->quote("1\0") !== '\'1\\0\'') {
if (! $this->connection->isPgsql() && $this->db->quote("1\0") !== '\'1\\0\'') {
throw new IcingaException(
'Refusing to render the configuration, your DB layer corrupts binary data.'
. ' You might be affected by Zend Framework bug #655'