Sha256: c7b95ba711c5a4eeebee16374dbed4142f808c82031cbb998bbf2d743341e3ce

Contents?: true

Size: 214 Bytes

Versions: 35

Compression:

Stored size: 214 Bytes

Contents

CREATE OR REPLACE FUNCTION unnest(anyarray)
  RETURNS SETOF anyelement AS
$BODY$
SELECT $1[i] FROM
    generate_series(array_lower($1,1),
                    array_upper($1,1)) i;
$BODY$
  LANGUAGE 'sql' IMMUTABLE

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
pg_search-0.6.1 sql/unnest.sql
pg_search-0.6.0 sql/unnest.sql
pg_search-0.5.7 sql/unnest.sql
pg_search-0.5.6 sql/unnest.sql
pg_search-0.5.5 sql/unnest.sql
pg_search-0.5.4 sql/unnest.sql
pg_search-0.5.3 sql/unnest.sql
pg_search-0.5.2 sql/unnest.sql
pg_search-0.5.1 sql/unnest.sql
pg_search-0.5 sql/unnest.sql
pg_search-0.4.2 sql/unnest.sql
pg_search-0.4.1 sql/unnest.sql
pg_search-0.4 sql/unnest.sql
pg_search-0.3.4 sql/unnest.sql
pg_search-0.3.3 sql/unnest.sql