mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
DbHelper: fix some methods
This commit is contained in:
parent
531b54391a
commit
785802cbd6
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace Icinga\Module\Director\Web\Table;
|
namespace Icinga\Module\Director\Web\Table;
|
||||||
|
|
||||||
|
use Zend_Db_Expr as Expr;
|
||||||
|
|
||||||
trait DbHelper
|
trait DbHelper
|
||||||
{
|
{
|
||||||
public function dbHexFunc($column)
|
public function dbHexFunc($column)
|
||||||
@ -24,12 +26,12 @@ trait DbHelper
|
|||||||
|
|
||||||
public function isPgsql()
|
public function isPgsql()
|
||||||
{
|
{
|
||||||
return $this->db->getConfig() instanceof \Zend_Db_Adapter_Pdo_Pgsql;
|
return $this->db() instanceof \Zend_Db_Adapter_Pdo_Pgsql;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isMysql()
|
public function isMysql()
|
||||||
{
|
{
|
||||||
return $this->db->getConfig() instanceof \Zend_Db_Adapter_Pdo_Mysql;
|
return $this->db() instanceof \Zend_Db_Adapter_Pdo_Mysql;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function wantBinaryValue($value)
|
public function wantBinaryValue($value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user