Project

General

Profile

« Previous | Next » 

Revision 12384

schemas/util.sql: added str_equality_regexp(literal text)

View differences:

trunk/schemas/util.sql
2993 2993

  
2994 2994

  
2995 2995
--
2996
-- Name: str_equality_regexp(text); Type: FUNCTION; Schema: util; Owner: -
2997
--
2998

  
2999
CREATE FUNCTION str_equality_regexp(literal text) RETURNS text
3000
    LANGUAGE sql IMMUTABLE
3001
    AS $_$
3002
SELECT '^'||util.regexp_quote($1)||'$'
3003
$_$;
3004

  
3005

  
3006
--
2996 3007
-- Name: table2hstore(regclass); Type: FUNCTION; Schema: util; Owner: -
2997 3008
--
2998 3009

  

Also available in: Unified diff