We have application developed using PowerBuilder 6.0(Ingres as an backend). Application code was never updated since 2009. However suddenly it starts showing update error. Users are getting error message like 'Row Changes between retrieve and update' on attempt to save data. We have confirmed that original data is not even changed under database by any one during user’s attempt to save.
Application shows following error message.
Error message
Update failed.
Database error: -3: Row changed between retrieve and update.
No changes made to database.
Update os_sec1 set encrpt_pw='XXXXX' WHERE user_id ='Q0001 ' and USER_DEC = 'Mayur Patel__________' and last_pw_change = {ts'2012-03-12 13:27:28'}
We just noticed update statement's where cause have wrong values. [User Desc] field is showing value with extra space. We figure out that [User Decs] field having 40 char length and update statement showing total 40 char (Values + empty space). We do not know how application start considering extra space.
Other surprising part is, for some users application is working and for other it is showing error. Also all users are using Window 7.
Anyone have idea what could be the reason? Appreciate all inputs.