Skip to content

Commit

Permalink
Merge pull request #58 from mothership-gmbh/develop
Browse files Browse the repository at this point in the history
[skip-ci]
  • Loading branch information
azngeek authored Apr 27, 2017
2 parents ef0d810 + 03b664c commit 7bda772
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 7bda772

Please sign in to comment.