You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a transaction save some data which will affect an index.
Try to the index iterate it with idx.iterateEntriesMajor(key, false, true) using the same value as for the saved record as a key.
Expected behavior and actual behavior
As a result the saved item will be included in the selection ignoring the fact that the second parameter (fromInclusive) is false.
It should not be included since the key is the same.
The problem happens due to the code in OIndexTxAwareMultiValue:
toInclusive and fromInclusive should be swapped with each other because here toInclusive is applied to fromKey and fromInclusive to toKey. I suppose it should be vice versa.
The same problem is for PureTxBetweenIndexBackwardCursor.
The text was updated successfully, but these errors were encountered:
OrientDB Version, operating system, or hardware.
Operating System
Steps to reproduce the problem
In a transaction save some data which will affect an index.
Try to the index iterate it with
idx.iterateEntriesMajor(key, false, true)
using the same value as for the saved record as a key.Expected behavior and actual behavior
As a result the saved item will be included in the selection ignoring the fact that the second parameter (fromInclusive) is false.
It should not be included since the key is the same.
The problem happens due to the code in OIndexTxAwareMultiValue:
toInclusive and fromInclusive should be swapped with each other because here toInclusive is applied to fromKey and fromInclusive to toKey. I suppose it should be vice versa.
The same problem is for PureTxBetweenIndexBackwardCursor.
The text was updated successfully, but these errors were encountered: