🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #137

Re: insert into problem

#137
From: Isaac
Date: Mon, 09 Jun 2008 13:23
12 lines
1727 bytes
Bill Todd [TeamB] wrote:
> The the problem is getting the next number for the group when you
> insert a new record in a way that ensures that two users cannot get the
> same number. I suggest you lock the master record by setting one of its
> fields to itself then get the last used number, add one to it, insert
> the new detail record then commit the transaction. This will prevent
> two users from inserting detail records at the same time.
>   
Ok, can you please tell me what you mean by setting one of the fields to 
itself

Thanks
Technical Details
Message-ID: <484d2e33@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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>

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: Mon, 09 Jun 2008 16:23:53 +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>
In-Reply-To: <484d280b$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: <484d2e33@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1213017651 41.234.199.16 (9 Jun 2008 06:20:51 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail