Oops...forgot: My table was created thus:
Code:
CREATE TABLE t ( a INT NOT NULL, b INT NOT NULL DEFAULT 0 );
the trigger did not work if b did not have a default value.
But by doing it this way, the trigger effectively overrides the default value, so the default value is of no consequence.