Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior of ODocument.getOriginalValue() #6240

Open
6 tasks done
PhantomYdn opened this issue Jun 1, 2016 · 2 comments
Open
6 tasks done

Strange behavior of ODocument.getOriginalValue() #6240

PhantomYdn opened this issue Jun 1, 2016 · 2 comments
Assignees
Milestone

Comments

@PhantomYdn
Copy link
Contributor

Expected behavior and actual behavior

It seems pretty natural return current value on getOriginalValue() if value of a field was not actually changed. But ODocument returns null in this case.

Steps to reproduce the problem

Create a hook with onRecordAfterUpdate(). Check getOriginalValue() of field B of just updated document due to some changes in field A.

Important Questions

Do you see any problems to make it more natural/logical?

Runninng Mode

  • Embedded, using PLOCAL access mode
  • Embedded, using MEMORY access mode
  • Remote

OrientDB Version

  • v2.1.18

Operating System

  • Linux

Java Version

  • 8
@luigidellaquila
Copy link
Member

hi @PhantomYdn

IMHO it makes sense, but of course it changes the current behavior (maybe someone is relying on it...)

Guys, maybe we can consider it in 3.0?

Thanks

Luigi

@tglman tglman added this to the 3.0 milestone Jun 22, 2016
@tglman
Copy link
Member

tglman commented Jun 22, 2016

I think we rely on it in few cases, we will check it.

@tglman tglman modified the milestones: 3.0.0, 3.2 Dec 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants