From 785802cbd63e085516e2ac8c7dd2854d867c24b4 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 16 Aug 2017 17:33:02 +0200 Subject: [PATCH] DbHelper: fix some methods --- library/Director/Web/Table/DbHelper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/Director/Web/Table/DbHelper.php b/library/Director/Web/Table/DbHelper.php index 1a76db20..9c91b79f 100644 --- a/library/Director/Web/Table/DbHelper.php +++ b/library/Director/Web/Table/DbHelper.php @@ -2,6 +2,8 @@ namespace Icinga\Module\Director\Web\Table; +use Zend_Db_Expr as Expr; + trait DbHelper { public function dbHexFunc($column) @@ -24,12 +26,12 @@ trait DbHelper 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() { - return $this->db->getConfig() instanceof \Zend_Db_Adapter_Pdo_Mysql; + return $this->db() instanceof \Zend_Db_Adapter_Pdo_Mysql; } public function wantBinaryValue($value)