transaction bug with sequences ?

From: xoror(at)infuse(dot)org
To: pgsql-odbc(at)postgresql(dot)org
Subject: transaction bug with sequences ?
Date: 2002-03-14 11:42:47
Message-ID: Pine.GSO.4.10.10203141234450.987-100000@aries
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

hi,

i've encountered some strange problem with ODBC psqlodbc-07_01_0009
(system: pgsql 7.2 - cygwin)

this piece of SQL is giving me problems.

BEGIN TRANSACTION;
select nextval('some_id_seq');
ROLLBACK;
BEGIN TRANSACTION;
select nextval('some_id_seq');
ROLLBACK;
BEGIN TRANSACTION;
select nextval('some_id_seq');
ROLLBACK;
BEGIN TRANSACTION;
select nextval('some_id_seq');
ROLLBACK;

the expected result (and the result i'm getting from psql commandline
tool) is 4 times an __identical__ result value. Now, if i use ODBC and
execute these series of queries, i get 4 __different__ values. i think
something's wrong with odbc or borland bde (wich i'm using). Hope someone
could clear this one up.

thnx in advance

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message xoror 2002-03-14 11:51:12 Re: transaction bug with sequences ?
Previous Message Jean-Michel POURE 2002-03-14 08:36:22 Re: ODBC