Index: trunk/phase3/includes/installer/PostgresUpdater.php |
— | — | @@ -397,7 +397,8 @@ |
398 | 398 | protected function renameTable( $old, $new ) { |
399 | 399 | if ( $this->db->tableExists( $old ) ) { |
400 | 400 | $this->output( "Renaming table $old to $new\n" ); |
401 | | - $this->db->query( "ALTER TABLE '$old' RENAME TO $new" ); |
| 401 | + $old = $this->db->addQuotes( $old ); |
| 402 | + $this->db->query( "ALTER TABLE $old RENAME TO $new" ); |
402 | 403 | } |
403 | 404 | } |
404 | 405 | |