Revision 10324
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/util.sql | ||
---|---|---|
1032 | 1032 |
CREATE FUNCTION hstore(keys text[], value text) RETURNS hstore |
1033 | 1033 |
LANGUAGE sql IMMUTABLE |
1034 | 1034 |
AS $_$ |
1035 |
SELECT hstore($1, util.array_fill($2, util.array_length($1)))
|
|
1035 |
SELECT hstore(util.fix_array($1), util.array_fill($2, util.array_length($1)))
|
|
1036 | 1036 |
$_$; |
1037 | 1037 |
|
1038 | 1038 |
|
Also available in: Unified diff
bugfix: schemas/util.sql: hstore(keys text[], value text): use new fix_array() so that an empty keys array is made 1-dimensional to match up with the array generated by array_fill()