Followup r81534, use addQuotes() instead
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 23 Feb 2011 16:42:42 +0000 (16:42 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 23 Feb 2011 16:42:42 +0000 (16:42 +0000)
includes/installer/PostgresUpdater.php

index c387575..b40767a 100644 (file)
@@ -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" );
                }
        }