Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
2.2.10, 3.0.13, 3.11.0, 4.0-alpha1, 4.0
-
None
-
None
-
Low
Description
Let's assume that we have a row with the 'listColumn' column and value {1,2,3,4}.
For me it looks logical to expect that the following two pieces of code will ends up with the same result but it isn't so.
Code1:
UPDATE t SET listColumn[2] = 7, listColumn[2] = 8 WHERE id = 1;
Expected result: listColumn={1,2,8,4}
Actual result: listColumn={1,2,7,8,4}
Code2:
UPDATE t SET listColumn[2] = 7 WHERE id = 1; UPDATE t SET listColumn[2] = 8 WHERE id = 1;
Expected result: listColumn={1,2,8,4}
Actual result: listColumn={1,2,8,4}
So the question is why Code1 and Code2 give different results?
Looks like Code1 should give the same result as Code2.