Skip to content

Commit

Permalink
Update AbstractWorkflow.php
Browse files Browse the repository at this point in the history
  • Loading branch information
azngeek authored Apr 27, 2017
1 parent 8b647cc commit 03b664c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 03b664c

Please sign in to comment.