I have a column named DTUpdated of type timestamp with time zone.
I created a function to automatically update that column with every modification:
CREATE OR REPLACE FUNCTION public."RowModifiedFunction"()
RETURNS trigger AS $$
BEGIN
NEW.DTUpdated = clock_timestamp();
RETURN NEW;
END;
and apply it with a trigger in that table
CREATE TRIGGER "RowModifiedTrigger"
BEFORE UPDATE
ON public."Departments"
FOR EACH ROW
EXECUTE PROCEDURE public."RowModifiedFunction"();
But when I modify a column I get the error:
"Record new has no field dtupdated" (in lowercase).