Project

General

Profile

« Previous | Next » 

Revision 14229

schemas/util.sql: added canon_sql(expr text, table_ regclass)

View differences:

trunk/schemas/util.sql
851 851

  
852 852

  
853 853
--
854
-- Name: canon_sql(text, regclass); Type: FUNCTION; Schema: util; Owner: -
855
--
856

  
857
CREATE FUNCTION canon_sql(expr text, table_ regclass) RETURNS text
858
    LANGUAGE sql STABLE
859
    AS $$
860
SELECT util.canon_sql(expr, util.regtype(table_))
861
$$;
862

  
863

  
864
--
854 865
-- Name: canon_sql(text, regtype); Type: FUNCTION; Schema: util; Owner: -
855 866
--
856 867

  

Also available in: Unified diff