Article View: borland.public.cppbuilder.database.multi-tier
Article #1579Re: Error "Record modified by another user"
From: Matt Jacobs
Date: Wed, 18 Aug 1999 00:00
Date: Wed, 18 Aug 1999 00:00
29 lines
1921 bytes
1921 bytes
If concurrency is not an issue for you. For instance, if you know no one but yourself will be editing the records you are editing, then what you can do is change the UpdateMode from UpWhereAll to UpWhereKeyOnly. As long as your primary key is not a floating point or datetime field (hidden floating point), then you will be okay. UpWhereChanged in not usually a lot of help. It has the potential to decrease the odds you will have the edit error, but it does not solve the problem. UpWhereChanged can decrease the complexity of the WHERE clause in the SQL statement that is generated, but in order to know what changed, the BDE still must perform an internal comparison. If this comparison contains floating point values, then the possibility exists the rouding error will take place there, inside the bowels of the BDE (which is the most likely place for the error). On the other hand, if you and someone else perform concurrent edits on these same records, you need another solution. UpWhereKeyOnly will not help you because you need UpWhereChanged so you will be notified the record was actually changed by someone else while you were editing it yourself. Matt Jacobs -- My reply-to address is purposely mangled to thwart auto-reply bots. Please remove the two leading underscores if you wish to reply via e-mail.
Technical Details
Message-ID:
<7pd65r$jr8@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7ouqd6$fi211@forums.borland.com> <37ba957d.458483384@forums.inprise.com> <7p0kig$h8f4@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,835c276b5b3c4b94 X-Google-Attributes: gidfcd2b,public From: mattja@ix.netcom.com (Matt Jacobs) Subject: Re: Error "Record modified by another user" Date: 1999/08/18 Message-ID: <7pd65r$jr8@forums.borland.com> X-Deja-AN: 514044688 References: <7ouqd6$fi211@forums.borland.com> <37ba957d.458483384@forums.inprise.com> <7p0kig$h8f4@forums.borland.com> Organization: Another Netscape Collabra Server User Reply-To: __mattja@ix.netcom.com Newsgroups: borland.public.cppbuilder.database.multi-tier