Revision 13489
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
705 | 705 |
CREATE FUNCTION array_reverse("array" anyarray) RETURNS anyarray |
706 | 706 |
LANGUAGE sql IMMUTABLE |
707 | 707 |
AS $_$ |
708 |
SELECT array(SELECT * FROM util.in_reverse($1))
|
|
708 |
SELECT array(SELECT elem FROM util.in_reverse($1) elem)
|
|
709 | 709 |
$_$; |
710 | 710 |
|
711 | 711 |
|
Also available in: Unified diff
bugfix: schemas/util.sql: array_reverse(): can't use `SELECT *` for composite types because this expands them