feature #4: create function for article

implement generate_version_number()
This commit is contained in:
2019-07-27 01:19:25 +02:00
parent 2286568ae9
commit ce2f2b4f2a
11 changed files with 144 additions and 17 deletions

View File

@@ -9,4 +9,4 @@ begin
end;
$$;
-- drop function if exists find_user_by_id(uuid, inout json);
-- drop function if exists find_user_by_id(uuid, out json);

View File

@@ -11,9 +11,7 @@ begin
from json_populate_record(null::"user", resource)
returning id into new_id;
select to_json(u) into resource
from "user" as u
where u.id = new_id;
select find_user_by_id(new_id) into resource;
end;
$$;