Re: Access - ODBC - serial problem... - Mailing list pgsql-odbc

From Richard Huxton
Subject Re: Access - ODBC - serial problem...
Date
Msg-id 200404081448.53157.dev@archonet.com
Whole thread Raw
In response to Access - ODBC - serial problem...  ("Philippe Lang" <philippe.lang@attiksystem.ch>)
Responses Re: Access - ODBC - serial problem...
List pgsql-odbc
On Thursday 08 April 2004 13:23, Philippe Lang wrote:
>
> With the table described below, imagine I do, from the client:
>
> insert into test (code) VALUES (20);
>
> How does the client know the id that has been given to the record? With
> ethereal, I could see Access fetches the id by doing a
>
> select id from test where code = 20"
>
> Of course, another record has the same code, and the wrong id is being
> fetched back. This explains what I have noticed, and that is explained
> below...

Do you not have a primary key on your table?


--
  Richard Huxton
  Archonet Ltd

pgsql-odbc by date:

Previous
From: "Philippe Lang"
Date:
Subject: Access - ODBC - serial problem...
Next
From: Richard Combs
Date:
Subject: Re: Access - ODBC - serial problem...