From: Chuck Hagenbuch Date: Mon, 11 Jan 2010 04:21:59 +0000 (-0500) Subject: Add two logger warn() calls to fill out @TODOs X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2a733bfe706110a86f825d15ef413ed60fa0bfdf;p=horde.git Add two logger warn() calls to fill out @TODOs --- 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"); } } } }