diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-22 06:19:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-22 06:19:04 +0000 |
commit | a5a12887a15449ec5a19915c21611ae5006c5361 (patch) | |
tree | 655febf830619ba0199fe2780025077401aee748 /src/backend/utils/adt/arrayfuncs.c | |
parent | 2019e24dd8093a36331a4fe02c1ac8943bdc0c23 (diff) | |
download | postgresql-a5a12887a15449ec5a19915c21611ae5006c5361.tar.gz postgresql-a5a12887a15449ec5a19915c21611ae5006c5361.zip |
Make update lists like 'UPDATE tab SET foo[1] = bar, foo[3] = baz'
work as expected. THe underlying implementation is essentially
'SET foo = array_set(foo, 1, bar)', so we have to turn the items
into nested invocations of array_set() to make it work correctly.
Side effect: we now complain about 'UPDATE tab SET foo = bar, foo = baz'
which is illegal per SQL92 but we didn't detect it before.
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions