CREATE FUNCTION public.super_custom_delete_block_by_id(nodeId public.block)
RETURNS public.block
AS $$
DELETE FROM public.block
WHERE block.id = nodeId.id
RETURNING *;
$$ LANGUAGE sql VOLATILE STRICT SECURITY DEFINER;
comment on function public.super_custom_delete_block_by_id(block_id public.block) is E'@arg0variant nodeId';
block here is an @interface mode:relational type; so the nodeId argument should accept ids from any of the concrete types of this, and then pass through the root table record. Currently I'm not sure what it does (need to try and reproduce it) but I'm guessing it fails to find a suitable handler for the type and thus gives up.
Context: https://discord.com/channels/489127045289476126/498852330754801666/1139080641795862609
Reported by @sgrove
block
here is an@interface mode:relational
type; so thenodeId
argument should accept ids from any of the concrete types of this, and then pass through the root table record. Currently I'm not sure what it does (need to try and reproduce it) but I'm guessing it fails to find a suitable handler for the type and thus gives up.