From 03b664c07b11a47826eee103fec51beeac4778b4 Mon Sep 17 00:00:00 2001 From: Don Bosco van Hoi Date: Thu, 27 Apr 2017 19:26:24 +0200 Subject: [PATCH] Update AbstractWorkflow.php --- .../Magerun/Base/Command/Workflow/AbstractWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php b/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php index 4c60911..ffb61f5 100644 --- a/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php +++ b/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php @@ -241,7 +241,7 @@ public function fetch($sql, array $args = [], $pdoFetchType = \PDO::FETCH_ASSOC) */ public function exec($sql, array $args = []) { - $pdo = \Mage::getSingleton('core/resource')->getConnection('core_read')->getConnection(); + $pdo = \Mage::getSingleton('core/resource')->getConnection('core_write')->getConnection(); $stmt = $pdo->prepare($sql); $stmt->execute($args);