Skip to content

Get SQL 'RAISE EXCEPTION' functionality from DB to Crystal #200

@ArtLinkov

Description

@ArtLinkov

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions