Project

General

Profile

« Previous | Next » 

Revision 10363

schemas/util.sql: added eval2set()

View differences:

schemas/util.sql
909 909

  
910 910

  
911 911
--
912
-- Name: eval2set(text, anyelement); Type: FUNCTION; Schema: util; Owner: -
913
--
914

  
915
CREATE FUNCTION eval2set(sql text, ret_type_null anyelement DEFAULT NULL::text) RETURNS SETOF anyelement
916
    LANGUAGE plpgsql
917
    AS $$
918
BEGIN
919
	RAISE NOTICE '%', sql;
920
	RETURN QUERY EXECUTE sql;
921
END;
922
$$;
923

  
924

  
925
--
926
-- Name: FUNCTION eval2set(sql text, ret_type_null anyelement); Type: COMMENT; Schema: util; Owner: -
927
--
928

  
929
COMMENT ON FUNCTION eval2set(sql text, ret_type_null anyelement) IS 'ret_type_null: NULL::ret_type';
930

  
931

  
932
--
912 933
-- Name: eval2val(text, anyelement); Type: FUNCTION; Schema: util; Owner: -
913 934
--
914 935

  

Also available in: Unified diff