database - Multiple triggers don't work on firebird -
create trigger tr_bufile_fileid bufiles before insert begin if (new.fileid null) new.fileid = gen_id(fileid_generator, 1); end create trigger tr_bufile_insert bufiles after insert begin update miscitems set totalsize = totalsize + new.bufilesize; end create trigger tr_bufile_update bufiles after update begin if (new.deletiontime < '9223372036854775807' , new.deletiontime != old.deletiontime) update miscitems set totalsize = totalsize - old.bufilesize; end
i created 3 triggers on firebird database. application use odbc connection operate on database. problem second trigger (tr_bufile_insert) doesn't work if make insertion on bufiles table. trigger works if test them in sql manager interbase/firebird.
any appreciated.
thanks, shiping
your triggers seems ok . afraid connecting db application . please check . please check trigger status "active"
Comments
Post a Comment