Revision 10358
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/util.sql | ||
---|---|---|
1117 | 1117 |
|
1118 | 1118 |
|
1119 | 1119 |
-- |
1120 |
-- Name: map_nulls(anyarray, anyelement); Type: FUNCTION; Schema: util; Owner: -
|
|
1120 |
-- Name: map_nulls(text[], anyelement); Type: FUNCTION; Schema: util; Owner: -
|
|
1121 | 1121 |
-- |
1122 | 1122 |
|
1123 |
CREATE FUNCTION map_nulls(nulls anyarray, value anyelement) RETURNS anyelement
|
|
1123 |
CREATE FUNCTION map_nulls(nulls text[], value anyelement) RETURNS anyelement
|
|
1124 | 1124 |
LANGUAGE sql IMMUTABLE |
1125 | 1125 |
AS $_$ |
1126 | 1126 |
SELECT util._map(util.hstore($1, NULL) || '*=>*', $2) |
Also available in: Unified diff
bugfix: schemas/util.sql: map_nulls(): updated to use hstore(text[], anyelement), which has replaced hstore(anyarray, anyelement)