From: Chad Horohoe Date: Wed, 23 Feb 2011 16:42:42 +0000 (+0000) Subject: Followup r81534, use addQuotes() instead X-Git-Tag: 1.31.0-rc.0~31808 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=42242d76206e6297a5e8d660d2bce25a697763a1;p=lhc%2Fweb%2Fwiklou.git Followup r81534, use addQuotes() instead --- diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index c3875754ae..b40767affd 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -397,7 +397,8 @@ END; protected function renameTable( $old, $new ) { if ( $this->db->tableExists( $old ) ) { $this->output( "Renaming table $old to $new\n" ); - $this->db->query( "ALTER TABLE '$old' RENAME TO $new" ); + $old = $this->db->addQuotes( $old ); + $this->db->query( "ALTER TABLE $old RENAME TO $new" ); } }