Files
dc-project/src/main/resources/sql/functions/comment/edit_comment.sql

10 lines
196 B
PL/PgSQL

create or replace function edit_comment(_id uuid, _content text) returns void
language plpgsql as
$$
begin
update comment c set
"content" = _content
where c.id = _id;
end;
$$;