Boolean expression involving $INCREMENT and indirection returns incorrect results
Final Release Note
Description
Below is a simple example illustrating the issue. The first write
command below correctly prints the value of the boolean expression as 0
. But the second write
command (which is effectively doing a 0!...
where ...
is the first boolean expression) prints an incorrect result of 1
. The correct result is 0
.
$ $ydb_dist/yottadb -direct
YDB>set ivar="var",var=0
YDB>write ((0<($increment(var,-1)-$increment(@ivar,1)))=(0>($increment(@ivar,-1)-$increment(var,1))))
0
YDB>write 0!((0<($increment(var,-1)-$increment(@ivar,1)))=(0>($increment(@ivar,-1)-$increment(var,1))))
1