Project

General

Profile

« Previous | Next » 

Revision 8209

schemas/util.sql: Added try_mk_derived_col()

View differences:

schemas/util.sql
999 999

  
1000 1000

  
1001 1001
--
1002
-- Name: try_mk_derived_col(col_ref, text); Type: FUNCTION; Schema: util; Owner: -
1003
--
1004

  
1005
CREATE FUNCTION try_mk_derived_col(col col_ref, expr text) RETURNS void
1006
    LANGUAGE sql STRICT
1007
    AS $_$
1008
SELECT util.try_create($$SELECT util.mk_derived_col($$||quote_literal($1)||$$, $$||quote_literal($2)||$$)$$)
1009
$_$;
1010

  
1011

  
1012
--
1013
-- Name: FUNCTION try_mk_derived_col(col col_ref, expr text); Type: COMMENT; Schema: util; Owner: -
1014
--
1015

  
1016
COMMENT ON FUNCTION try_mk_derived_col(col col_ref, expr text) IS 'idempotent';
1017

  
1018

  
1019
--
1002 1020
-- Name: type_qual(anyelement); Type: FUNCTION; Schema: util; Owner: -
1003 1021
--
1004 1022

  

Also available in: Unified diff