Project

General

Profile

« Previous | Next » 

Revision 14163

schemas/util.sql: added check_constraint_expr_disable()

View differences:

trunk/schemas/util.sql
936 936

  
937 937

  
938 938
--
939
-- Name: check_constraint_expr_disable(text); Type: FUNCTION; Schema: util; Owner: -
940
--
941

  
942
CREATE FUNCTION check_constraint_expr_disable(expr text) RETURNS text
943
    LANGUAGE sql IMMUTABLE
944
    AS $_$
945
SELECT $$true OR $$||expr
946
$_$;
947

  
948

  
949
--
939 950
-- Name: check_constraint_expr_enable(text); Type: FUNCTION; Schema: util; Owner: -
940 951
--
941 952

  

Also available in: Unified diff