Article View: borland.public.interbase.sql
Article #148Re: insert into problem
From: Isaac
Date: Mon, 09 Jun 2008 23:09
Date: Mon, 09 Jun 2008 23:09
13 lines
1843 bytes
1843 bytes
Bill Todd [TeamB] wrote: > UPDATE ATABLE SET AFIELD = AFIELD > This does not change the value of the field but it counts as an update > so the record is locked until the transaction commits. By locking the > master record before you insert a detail record you make sure that no > other user can insert a detail record while you are inserting one > because no other user will be able to lock the master record. > > Obviously you have to deal with the case where the UPDATE to the master > record fails because some other user has the record locked. > > Maaaaaaany Thanks very good hack
Technical Details
Message-ID:
<484db771@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<484b07da@newsgroups.borland.com> <484b16e4@newsgroups.borland.com> <484b52eb$1@newsgroups.borland.com> <484c007f@newsgroups.borland.com> <484c07a9$1@newsgroups.borland.com> <484c2394@newsgroups.borland.com> <484c7832$1@newsgroups.borland.com> <484d14e3$1@newsgroups.borland.com> <484d280b$1@newsgroups.borland.com> <484d2e33@newsgroups.borland.com> <484d7700$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,ed255c09332ecd2c X-Google-Attributes: gid114a0e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 10 Jun 2008 02:09:26 +0300 From: Isaac <no@no.com> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.interbase.sql Subject: Re: insert into problem References: <484b07da@newsgroups.borland.com> <484b16e4@newsgroups.borland.com> <484b52eb$1@newsgroups.borland.com> <484c007f@newsgroups.borland.com> <484c07a9$1@newsgroups.borland.com> <484c2394@newsgroups.borland.com> <484c7832$1@newsgroups.borland.com> <484d14e3$1@newsgroups.borland.com> <484d280b$1@newsgroups.borland.com> <484d2e33@newsgroups.borland.com> <484d7700$1@newsgroups.borland.com> In-Reply-To: <484d7700$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 41.234.199.16 Message-ID: <484db771@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213052785 41.234.199.16 (9 Jun 2008 16:06:25 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail