It is possible to write exceptions and notices in SQL functions (like in any programming language), for example:
CREATE OR REPLACE FUNCTION foo(IN str TEXT)
RETURNS VOID
LANGUAGE 'plpgsql'
AS $$
BEGIN
IF str = 'yes' THEN
RAISE NOTICE 'Glad we agree!';
ELSE
RAISE EXCEPTION 'You know nothing John Snow!';
END IF;
END;
$$;
I did not find any method of querying that also captures such exceptions and returns them to crystal.
Does this functionality exist or is it a missing feature?
It is possible to write exceptions and notices in SQL functions (like in any programming language), for example:
I did not find any method of querying that also captures such exceptions and returns them to crystal.
Does this functionality exist or is it a missing feature?