From: OverlordQ Date: Tue, 28 Dec 2010 22:26:45 +0000 (+0000) Subject: Followup to r79094, PG handles temporary tables correctly so you dont need to do... X-Git-Tag: 1.31.0-rc.0~33018 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=91307ea896bcc29019b0382d253d2c6ea35a00f3;p=lhc%2Fweb%2Fwiklou.git Followup to r79094, PG handles temporary tables correctly so you dont need to do cleanup --- diff --git a/includes/db/CloneDatabase.php b/includes/db/CloneDatabase.php index cf3a177b3d..cfefb6ede1 100644 --- a/includes/db/CloneDatabase.php +++ b/includes/db/CloneDatabase.php @@ -94,7 +94,7 @@ class CloneDatabase { $this->changePrefix( $this->newTablePrefix ); $newTableName = $this->db->tableName( $tbl ); - if( $this->dropCurrentTables ) { + if( $this->dropCurrentTables && !in_array( $this->db->getType(), array( 'postgres') ) ) { $this->db->dropTable( $newTableName, __METHOD__ ); }