How can I tell if a call to ORM was successful?
Example 1)
If I successfully fetch a record and then attempt to update it, and someone behind the scenes has already deleted it, I would expect to get an error when I then try to commit my changes. I do not receive an error.
Example 2)
If I successfully fetch a record and then attempt to delete it, and someone behind the scenes has already deleted it, I would expect to get an error when I then try to delete it. I do not receive an error.
Example 3)
If I successfully fetch a record and update it, when I issue the COMMITALL command, I would expect an error if someone else has already updated the record. I do not receive an error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know there was discussion on the Olero forum about number 3 about conflict resolution or supporting timestamps. However, I guess it still hasn't been added.
It also would be nice if they had an option on the save to add the old values to the WHERE clause of the update, this way you wouldn't need a time stamp.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How can I tell if a call to ORM was successful?
Example 1)
If I successfully fetch a record and then attempt to update it, and someone behind the scenes has already deleted it, I would expect to get an error when I then try to commit my changes. I do not receive an error.
Example 2)
If I successfully fetch a record and then attempt to delete it, and someone behind the scenes has already deleted it, I would expect to get an error when I then try to delete it. I do not receive an error.
Example 3)
If I successfully fetch a record and update it, when I issue the COMMITALL command, I would expect an error if someone else has already updated the record. I do not receive an error.
I know there was discussion on the Olero forum about number 3 about conflict resolution or supporting timestamps. However, I guess it still hasn't been added.
It also would be nice if they had an option on the save to add the old values to the WHERE clause of the update, this way you wouldn't need a time stamp.