have BEFORE triggers. Fix for ticket #980. (CVS 2158) FossilOrigin-Name: 4852186aca3be6ea40069b6831079197e5fa757a