Project

General

Profile

« Previous | Next » 

Revision 10324

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()

View differences:

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