CREATE OR REPLACE FUNCTION public.sp_ccmm_json_9( param integer, periodo integer )
RETURNS json
LANGUAGE plpgsql
AS $function$
begin
declare ret JSON;
You declare “ret” but never assign it a value nor return it from the function.
David J.
CREATE OR REPLACE FUNCTION public.sp_ccmm_json_9( param integer, periodo integer )
RETURNS json
LANGUAGE plpgsql
AS $function$
begin
declare ret JSON;
![]() |