From: Chuck Hagenbuch Date: Thu, 7 Jan 2010 03:19:32 +0000 (-0500) Subject: Fix some typos found by the new tests. Yay tests! X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e84d4a3ee25b72031e0ca20c1331b31668b22607;p=horde.git Fix some typos found by the new tests. Yay tests! --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php index 74d1df94a..bb212f213 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php +++ b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php @@ -42,7 +42,7 @@ class Horde_Db_Adapter_Postgresql_Schema extends Horde_Db_Adapter_Base_Schema { return '"' . str_replace('"', '""', $name) . '"'; } - + /** * Quotes sequence names for use in SQL queries. * @@ -457,7 +457,7 @@ class Horde_Db_Adapter_Postgresql_Schema extends Horde_Db_Adapter_Base_Schema $default = isset($options['default']) ? $options['default'] : null; $notnull = isset($options['null']) && $options['null'] === false; if (array_key_exists('default', $options)) - $this->changeColumnDefault($tableName, $columnName, $fault); + $this->changeColumnDefault($tableName, $columnName, $default); if ($notnull) $this->changeColumnNull($tableName, $columnName, false, $default); } @@ -535,7 +535,7 @@ class Horde_Db_Adapter_Postgresql_Schema extends Horde_Db_Adapter_Base_Schema { $this->_clearTableCache($tableName); if (!($null || is_null($default))) { - $this->execute('UPDATE '.$this->quoteTableName($tableName).' SET '.$this->quoteColumnName($columName).' = '.$this->quote($default).' WHERE '.$this->quoteColumnName($columnName).' IS NULL'); + $this->execute('UPDATE '.$this->quoteTableName($tableName).' SET '.$this->quoteColumnName($columnName).' = '.$this->quote($default).' WHERE '.$this->quoteColumnName($columnName).' IS NULL'); } return $this->execute('ALTER TABLE '.$this->quoteTableName($tableName).' ALTER '.$this->quoteColumnName($columnName).' '.($null ? 'DROP' : 'SET').' NOT NULL'); }