postgresql/contrib/ltree
Tom Lane fbdf9712af Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations.
The main motivation for changing this is bug #4921, in which it's pointed out
that it's no longer safe to apply ltree operations to the result of
ARRAY(SELECT ...) if the sub-select might return no rows.  Before 8.3,
the ARRAY() construct would return NULL, which might or might not be helpful
but at least it wouldn't result in an error.  Now it returns an empty array
which results in a failure for no good reason, since the ltree operations
are all perfectly capable of dealing with zero-element arrays.

As far as I can find, these ltree functions are the only places where zero
array dimensionality is rejected unnecessarily.

Back-patch to 8.3 to prevent behavioral regression of queries that worked
in older releases.
2010-02-24 18:02:36 +00:00
..
data
expected Fix a few contrib regression test scripts that hadn't gotten the word 2007-11-13 06:29:04 +00:00
sql Fix a few contrib regression test scripts that hadn't gotten the word 2007-11-13 06:29:04 +00:00
_ltree_gist.c Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations. 2010-02-24 18:02:36 +00:00
_ltree_op.c Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations. 2010-02-24 18:02:36 +00:00
crc32.c
crc32.h
lquery_op.c Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations. 2010-02-24 18:02:36 +00:00
ltree_gist.c Allow zero-dimensional (ie, empty) arrays in contrib/ltree operations. 2010-02-24 18:02:36 +00:00
ltree_io.c Fix several datatype input functions that were allowing unused bytes in their 2008-04-11 22:52:17 +00:00
ltree_op.c
ltree.h Modify LOOPBYTE/LOOPBIT macros to be more logical; rather than have the 2007-11-16 00:13:02 +00:00
ltree.sql.in Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
ltreetest.sql Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
ltxtquery_io.c Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
ltxtquery_op.c Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
Makefile
uninstall_ltree.sql Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00