Revision 10305
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/util.sql | ||
---|---|---|
535 | 535 |
|
536 | 536 |
|
537 | 537 |
-- |
538 |
-- Name: array_fill(anyelement, integer); Type: FUNCTION; Schema: util; Owner: - |
|
539 |
-- |
|
540 |
|
|
541 |
CREATE FUNCTION array_fill(value anyelement, length integer) RETURNS anyarray |
|
542 |
LANGUAGE sql IMMUTABLE |
|
543 |
AS $_$ |
|
544 |
SELECT pg_catalog.array_fill($1, ARRAY[$2]) |
|
545 |
$_$; |
|
546 |
|
|
547 |
|
|
548 |
-- |
|
538 | 549 |
-- Name: array_length(anyarray); Type: FUNCTION; Schema: util; Owner: - |
539 | 550 |
-- |
540 | 551 |
|
Also available in: Unified diff
schemas/util.sql: added array_fill(anyelement, integer), which doesn't require lengths for multiple dimensions