// Db::autoExecute() call are now replaced by Db::insert() or Db::update()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12625 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -391,11 +391,11 @@ class InstallXmlLoader
|
||||
{
|
||||
foreach ($this->delayed_inserts as $entity => $queries)
|
||||
{
|
||||
$type = 'INSERT IGNORE';
|
||||
$type = Db::INSERT_IGNORE;
|
||||
if ($entity == 'access')
|
||||
$type = 'REPLACE';
|
||||
$type = Db::REPLACE;
|
||||
|
||||
if (!Db::getInstance()->autoExecute(_DB_PREFIX_.$entity, $queries, $type))
|
||||
if (!Db::getInstance()->insert($entity, $queries, false, true, $type))
|
||||
$this->setError($this->language->l('An SQL error occured for entity <i>%1$s</i>: <i>%2$s</i>', $entity, Db::getInstance()->getMsgError()));
|
||||
unset($this->delayed_inserts[$entity]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user