10 lines
196 B
PL/PgSQL
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;
|
|
$$;
|