1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00
The updating of array fields is broken in Postgres95-1.01, An array can
be only replaced with a new array but not have some elements modified.
This is caused by two bugs in the parser and in the array utilities.
Furthermore it is not possible to update array with a base type of
variable length.


- submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
This commit is contained in:
Marc G. Fournier
1996-07-20 07:59:41 +00:00
parent baeb3aadc5
commit 94215d51c8
4 changed files with 66 additions and 5 deletions

View File

@ -555,9 +555,9 @@ COPY bt_f8_heap FROM '_CWD_/data/hash.data';
INSERT INTO arrtest (a[5], b[2][1][2], c, d)
VALUES ('{1,2,3,4,5}', '{{{},{1,2}}}', '{}', '{}');
-- UPDATE arrtest SET e[0] = '1.1';
UPDATE arrtest SET e[0] = '1.1';
-- UPDATE arrtest SET e[1] = '2.2';
UPDATE arrtest SET e[1] = '2.2';
INSERT INTO arrtest (a, b[2][2][1], c, d, e)
VALUES ('{11,12,23}', '{{3,4},{4,5}}', '{"foobar"}',