You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE OR REPLACEFUNCTIONupdated_at() RETURNS trigger AS $$
BEGIN
IF (
NEW IS DISTINCT FROM OLD ANDNEW.updated_at IS NOT DISTINCT FROMOLD.updated_at
) THEN
NEW.updated_at :=current_timestamp;
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
The text was updated successfully, but these errors were encountered:
We have a trigger that updates the field time
The text was updated successfully, but these errors were encountered: