From: Richard Huxton <dev@archonet.com>
To: Philippe Lang <philippe.lang@attiksystem.ch>
To: pgsql-odbc@postgresql.org
Subject: Re: Access - ODBC - serial problem...
Date: Thu, 8 Apr 2004 14:48:53 +0100
Message-ID: <200404081448.53157.dev@archonet.com> (raw)
In-Reply-To: <6C0CF58A187DA5479245E0830AF84F420802A0@poweredge.attiksystem.ch>
References: <6C0CF58A187DA5479245E0830AF84F420802A0@poweredge.attiksystem.ch>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: dev@archonet.com, philippe.lang@attiksystem.ch
Subject: Re: Access - ODBC - serial problem...
In-Reply-To: <200404081448.53157.dev@archonet.com>
References: <6C0CF58A187DA5479245E0830AF84F420802A0@poweredge.attiksystem.ch> <200404081448.53157.dev@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox