OPEN-DSI / ecommerceng_woosync

WooSync, synchronize Woocommerce and Dolibarr
GNU General Public License v3.0
71 stars 46 forks source link

[ Synchronisation ] - Erreur de suppression #19

Open pierrejego opened 4 years ago

pierrejego commented 4 years ago

Cette erreur apparaît, lors de synchronisation Dolibarr -> woosync

2020-04-21 19:07:04 ERR 109.213.7.164 DoliDBMysqli::query SQL Error query: DELETE FROM dolibarrllx_ecommerce_commande WHERE (fk_commande > 0 AND fk_commande NOT IN (select rowid from dolibarrllx_commande)) OR fk_site NOT IN (select rowid from dolibarrllx_ecommerce_site))

2020-04-21 19:07:04 ERR 109.213.7.164 DoliDBMysqli::query SQL Error message: DB_ERROR_SYNTAX You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

Je vais me pencher un peu plus sur le code pour voir si je peux proposer une correction, même si pour l'instant je ne vois pas l'impact de cette erreur.

pierrejego commented 4 years ago

A priori cela vient de cette partie du code https://github.com/OPEN-DSI/ecommerceng_woosync/blob/2b87a5198984ec6904bfacb85e51785e3797fd2a/class/data/eCommerceSite.class.php#L91