Re: [SQL] Bug: Sequence generator insert

2003-11-30 Thread Iain
t value for the id (ir didn't use the default) but still used (and therefore incremented) the sequence. Regards Iain - Original Message - From: "Burr, Colin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 26, 2003 8:37 AM Subject: [SQL] B

Re: [SQL] Bug: Sequence generator insert

2003-11-30 Thread Iain
: "Burr, Colin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 26, 2003 8:37 AM Subject: [SQL] Bug: Sequence generator insert > Dear Sir, > I found a sequence generator software bug associated with duplicate key > inserts that may be of interes

Re: [SQL] Bug: Sequence generator insert

2003-11-28 Thread Bruno Wolff III
On Tue, Nov 25, 2003 at 18:37:41 -0500, "Burr, Colin" <[EMAIL PROTECTED]> wrote: > > However, even though the new record failed to be inserted into the table, > the sequence generator was still updated. > > The sequence generator should only be updated if the record is successfully > inserted i

[SQL] Bug: Sequence generator insert

2003-11-28 Thread Burr, Colin
Dear Sir, I found a sequence generator software bug associated with duplicate key inserts that may be of interest to you. I first created a table with a primary key based on a sequence generator. The following script provides an example. CREATE SEQUENCE "id_seq" start 1 increment 1 maxvalue 21474