Project

General

Profile

« Previous | Next » 

Revision 13958

schemas/util.sql: added words(text)

View differences:

trunk/schemas/util.sql
4946 4946

  
4947 4947

  
4948 4948
--
4949
-- Name: words(text); Type: FUNCTION; Schema: util; Owner: -
4950
--
4951

  
4952
CREATE FUNCTION words(str text) RETURNS SETOF text
4953
    LANGUAGE sql IMMUTABLE
4954
    AS $_$
4955
SELECT * FROM regexp_split_to_table($1, '\y')
4956
$_$;
4957

  
4958

  
4959
--
4949 4960
-- Name: all_same(anyelement); Type: AGGREGATE; Schema: util; Owner: -
4950 4961
--
4951 4962

  

Also available in: Unified diff