Project

General

Profile

« Previous | Next » 

Revision 13937

schemas/util.sql: added mk_set_comment(col col_ref, comment text)

View differences:

trunk/schemas/util.sql
2841 2841

  
2842 2842

  
2843 2843
--
2844
-- Name: mk_set_comment(col_ref, text); Type: FUNCTION; Schema: util; Owner: -
2845
--
2846

  
2847
CREATE FUNCTION mk_set_comment(col col_ref, comment text) RETURNS text
2848
    LANGUAGE sql STABLE
2849
    AS $_$
2850
SELECT util.mk_set_comment('COLUMN '||util.sql($1), $2)
2851
$_$;
2852

  
2853

  
2854
--
2844 2855
-- Name: mk_set_comment(text, text); Type: FUNCTION; Schema: util; Owner: -
2845 2856
--
2846 2857

  

Also available in: Unified diff