SA Bugzilla – Bug 7941
sql/txrep_sqlite.sql: typo in UPDATE trigger column name breaks txrep DB
Last modified: 2022-04-11 11:39:51 UTC
sql/txrep_sqlite.sql has a typo in UPDATE trigger column name: [1] should be [2] (note the "hot" vs "hit"). This typo breaks UPDATE operations on txrep DBs created from that script. While at it I would suggest applying the attached patch to "SQLBasedAddrList.pm" so errors like this one (happening at DBI prepare operation) are correctly handled and logged, instead of printing just [3] which doesn't give a clue what is wrong. References: [1]: WHEN NEW.last_hot < OLD.last_hit [2]: WHEN NEW.last_hit < OLD.last_hit [3]: Can't call method "execute" on an undefined value
Created attachment 5757 [details] show DBI prepare operation errors
Thanks, there were many $sth checks missing. Sending trunk/lib/Mail/SpamAssassin/SQLBasedAddrList.pm Sending trunk/sql/txrep_sqlite.sql Transmitting file data ..done Committing transaction... Committed revision 1899744.