Project

General

Profile

« Previous | Next » 

Revision 12354

schemas/util.sql: added namedatalen()

View differences:

trunk/schemas/util.sql
2072 2072

  
2073 2073

  
2074 2074
--
2075
-- Name: namedatalen(); Type: FUNCTION; Schema: util; Owner: -
2076
--
2077

  
2078
CREATE FUNCTION namedatalen() RETURNS integer
2079
    LANGUAGE sql IMMUTABLE
2080
    AS $$
2081
SELECT octet_length(repeat('_', 1024/*>63*/)::name::text)
2082
$$;
2083

  
2084

  
2085
--
2075 2086
-- Name: not_empty(anyarray); Type: FUNCTION; Schema: util; Owner: -
2076 2087
--
2077 2088

  

Also available in: Unified diff