Project

General

Profile

« Previous | Next » 

Revision 12467

schemas/util.sql: mk_set_search_path(): added for_printing option like for mk_set_search_path(text)

View differences:

util.sql
2060 2060

  
2061 2061

  
2062 2062
--
2063
-- Name: mk_set_search_path(); Type: FUNCTION; Schema: util; Owner: -
2064
--
2065

  
2066
CREATE FUNCTION mk_set_search_path() RETURNS text
2067
    LANGUAGE sql IMMUTABLE
2068
    AS $$
2069
SELECT util.mk_set_search_path(current_setting('search_path'))
2070
$$;
2071

  
2072

  
2073
--
2074 2063
-- Name: mk_set_search_path(text[]); Type: FUNCTION; Schema: util; Owner: -
2075 2064
--
2076 2065

  
......
2094 2083

  
2095 2084

  
2096 2085
--
2086
-- Name: mk_set_search_path(boolean); Type: FUNCTION; Schema: util; Owner: -
2087
--
2088

  
2089
CREATE FUNCTION mk_set_search_path(for_printing boolean DEFAULT false) RETURNS text
2090
    LANGUAGE sql IMMUTABLE
2091
    AS $_$
2092
SELECT util.mk_set_search_path(current_setting('search_path'), $1)
2093
$_$;
2094

  
2095

  
2096
--
2097 2097
-- Name: mk_set_search_path(text, boolean); Type: FUNCTION; Schema: util; Owner: -
2098 2098
--
2099 2099

  

Also available in: Unified diff