kouta
.public
Tables
(current)
Columns
Constraints
Relationships
Orphan Tables
Anomalies
Routines
set_valintaperusteet_last_modified_from_related()
Parameters
Name
Type
Mode
IN
Definition
begin if (tg_op = 'DELETE') then update valintaperusteet set last_modified = now()::timestamptz where id = old.valintaperuste_id and last_modified <> now()::timestamptz; return null; else update valintaperusteet set last_modified = now()::timestamptz, muokkaaja = new.muokkaaja where id = new.valintaperuste_id and last_modified <> now()::timestamptz; return null; end if; end;