Index: core/kernel/utility/temp_handler.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- core/kernel/utility/temp_handler.php (revision 15971) +++ core/kernel/utility/temp_handler.php (revision ) @@ -736,7 +736,8 @@ // copy ALL records with positive ids (since negative ids were processed above) to live table $sql = 'INSERT INTO ' . $this->_tableName . ' SELECT * - FROM ' . $this->_getTempTableName(); + FROM ' . $this->_getTempTableName() . ' + WHERE 1'; $this->Conn->Query($this->_addConstrain($sql)); $this->_saveId('', $live_ids); @@ -806,7 +807,8 @@ { if ( !$ids ) { $sql = 'SELECT ' . $this->_idField . ' - FROM ' . $this->_getTempTableName(); + FROM ' . $this->_getTempTableName() . ' + WHERE 1'; $ids = $this->Conn->GetCol($this->_addConstrain($sql)); } \ No newline at end of file