Cita: Alguna idea de lo que puede ser ?
Facilísimo: Estás indicando en todos los casos 5 campos en el INSERT INTO, y poniendo 25(
¡veinticinco!) valores en el VALUES...
No ha modo que eso funcione.
Una de dos: O no indicas qué campos ingresarás, y te remites a poner los valores en el orden de los campos de la tabla; o bien pones los 25 campos en el INSERT INTO, en su orden correcto...
Código MySQL:
Ver original host,
usuario,
operacion,
modificado,
tabla)
-- 5 campos
new.id_address,
new.id_country,
new.id_state,
new.id_customer,
new.id_manufacturer,
new.id_supplier,
new.id_warehouse,
new.alias,
new.company,
new.lastname,
new.firstname,
new.address1,
new.address2,
new.postcode,
new.city,
new.other,
new.phone,
new.phone_mobile,
new.vat_number,
new.dni,
new.date_upd,
new.active,
new.deleted,
-- 25 valores
host,
usuario,
operacion,
modificado,
tabla)
-- 5 campos
old.id_address,
old.id_country,
old.id_state,
old.id_customer,
old.id_manufacturer,
old.id_supplier,
old.id_warehouse,
old.alias,
old.company,
old.lastname,
old.firstname,
old.address1,
old.address2,
old.postcode,
old.city,
old.other,
old.phone,
old.phone_mobile,
old.vat_number,
old.dni,
old.date_upd,
old.active,
old.deleted,
-- 25 valores
host,
usuario,
operacion,
modificado,
tabla)
-- 5 Campos
OLD.id_address,
old.id_country,
old.id_state,
old.id_customer,
old.id_manufacturer,
old.id_supplier,
old.id_warehouse,
old.alias,
old.company,
old.lastname,
old.firstname,
old.address1,
old.address2,
old.postcode,
old.city,
old.other,
old.phone,
old.phone_mobile,
old.vat_number,
old.dni,
old.date_upd,
old.active,
old.deleted,
-- 25 valores