Re:Delphi 1.0 - Oracle 7.3 problem
Quote
> >> 'Couldn't perform the edit because another user changed the record.'
> >> Can anyone please help me by telling me what I have done wrong, coz
> >> only one user has access to the Oracle DB, so another user van't have
> >> changed any record...
I have seen this error in a MSSQL environment also, and I think it will
occur on every SQL Database. The fact is that if you have any fields that
are cumplimented in the server side (for example, a timestamp field, or an
auto-increment field), then Delphi will have an outdated copy of the record
after posting it. As Delphi uses an "optimistic locking" schema, when it
has to update again the record, it compares the values of its fields, with
the values in the server ... and they are different ... so " ... another
user changed the record". Try using "UpdateMode=WhereKeyOnly", and be aware
of any field that is cumplimented by the server.