From 2a733bfe706110a86f825d15ef413ed60fa0bfdf Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 10 Jan 2010 23:21:59 -0500 Subject: [PATCH] Add two logger warn() calls to fill out @TODOs --- framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php index 3bf218071..65e60831a 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php +++ b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php @@ -182,7 +182,7 @@ class Horde_Db_Adapter_Postgresql_Schema extends Horde_Db_Adapter_Base_Schema try { return $this->execute('DROP DATABASE ' . $this->quoteTableName($name)); } catch (Horde_Db_Exception $e) { - /*@TODO logger.warn "#{name} database doesn't exist." if logger */ + if ($this->_logger) { $this->_logger->warn("$name database doesn't exist"); } } } } @@ -373,7 +373,7 @@ class Horde_Db_Adapter_Postgresql_Schema extends Horde_Db_Adapter_Base_Schema $sql = "SELECT setval($quotedSequence, (SELECT COALESCE(MAX($quotedPk)+(SELECT increment_by FROM $quotedSequence), (SELECT min_value FROM $quotedSequence)) FROM $quotedTable), false)"; $this->selectValue($sql, 'Reset sequence'); } else { - /*@TODO logger.warn "$table has primary key $pk with no default sequence" if logger*/ + if ($this->_logger) { $this->_logger->warn("$table has primary key $pk with no default sequence"); } } } } -- 2.11.0