Balti2016 / trader-dss

Automatically exported from code.google.com/p/trader-dss
0 stars 0 forks source link

use nextval('sequence') to allocate uid, pfid, hid, qid, trid etc so that the id is known in advance #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I didn't know that 'select nextval("sequence");' would allocate and return
the next value in the sequence, so I've been allowing it to be inserted
into a table automatically when a row is added. That means that I don't
know what it is and in some cases try to select the newly added row to work
out the allocated sequence number.

The process should be
select nextval("sequence) as next_val;
insert into table next_val, other things

Original issue reported on code.google.com by peter.st...@1ab.ltd.uk on 29 Mar 2010 at 9:09

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r329.

Original comment by peter.st...@1ab.ltd.uk on 29 Mar 2010 at 1:11