Project

General

Profile

« Previous | Next » 

Revision 14216

schemas/util.sql: added is_raise_condition()

View differences:

trunk/schemas/util.sql
2957 2957

  
2958 2958

  
2959 2959
--
2960
-- Name: is_raise_condition(text); Type: FUNCTION; Schema: util; Owner: -
2961
--
2962

  
2963
CREATE FUNCTION is_raise_condition(raise_type text) RETURNS boolean
2964
    LANGUAGE sql IMMUTABLE
2965
    AS $_$
2966
SELECT raise_type ~ '^[[:upper:]]{3,}[[:digit:]]?$'
2967
$_$;
2968

  
2969

  
2970
--
2960 2971
-- Name: is_set_stmt(text); Type: FUNCTION; Schema: util; Owner: -
2961 2972
--
2962 2973

  

Also available in: Unified diff