]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Further cleanup of array behavior. Slice assignments to arrays with
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jul 2000 01:36:05 +0000 (01:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jul 2000 01:36:05 +0000 (01:36 +0000)
commite4e6459c0f34f102cf998661ed5619f3b9031b68
treeb24890617768b5a4eb74ddb7c0f3687500f92ca4
parentef2a6b8b833ffcd7686eeb77fd771d4613b0c144
Further cleanup of array behavior.  Slice assignments to arrays with
varlena elements work now.  Allow assignment to previously-nonexistent
subscript position to extend array, but only for 1-D arrays and only
if adjacent to existing positions (could do more if we had a way to
represent nulls in arrays, but I don't want to tackle that now).
Arrange for assignment of NULL to an array element in UPDATE to be a
no-op, rather than setting the entire array to NULL as it used to.
(Throwing an error would be a reasonable alternative, but it's never
done that...)  Update regress test accordingly.
src/backend/executor/execQual.c
src/backend/utils/adt/arrayfuncs.c
src/test/regress/expected/arrays.out
src/test/regress/sql/arrays.sql