Skip to content

Instantly share code, notes, and snippets.

@fballiano
fballiano / file.patch
Last active August 29, 2015 14:02
Duplicate primary on catalog_product_index_price_tmp
+++ b/app/code/core/Mage/Index/Model/Resource/Abstract.php
@@ -176,6 +176,7 @@ abstract class Mage_Index_Model_Resource_Abstract extends Mage_Core_Model_Resour
if ($from === $to) {
$query = $select->insertFromSelect($destTable, $columns);
+ $query = str_replace("INSERT INTO", "INSERT IGNORE INTO", $query);