Схема
public mixed
insertError (
$data )
Аргументы
Аргумент |
Возможный тип |
Описание |
$data |
— |
— |
Описание
Метод пока еще не документирован.
Исходный код
$this->db->query("
INSERT INTO `" . DB_PREFIX . "amazonus_product_error`
SET `sku` = '" . $this->db->escape($data['sku']) . "',
`error_code` = '" . (int)$data['error_code'] . "',
`message` = '" . $this->db->escape($data['message']) . "',
`insertion_id` = '" . $this->db->escape($data['insertion_id']) . "'
");
$this->db->query("
UPDATE `" . DB_PREFIX . "amazonus_product`
SET `status` = 'error'
WHERE `sku` = '" . $this->db->escape($data['sku']) . "' AND `insertion_id` = '" . $this->db->escape($data['insertion_id']) . "'
");