X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id A9D2AD1D105 for ; Thu, 8 Apr 2004 10:48:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 33620-08 for ; Thu, 8 Apr 2004 10:48:55 -0300 (ADT) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by svr1.postgresql.org (Postfix) with ESMTP id F1834D1D887 for ; Thu, 8 Apr 2004 10:48:52 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 1BBZto-0003lp-0V; Thu, 08 Apr 2004 14:48:57 +0100 Received: by mainbox.archonet.com (Postfix, from userid 529) id AD02E1644B; Thu, 8 Apr 2004 14:48:55 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 8DB01163A5; Thu, 8 Apr 2004 14:48:53 +0100 (BST) From: Richard Huxton To: "Philippe Lang" , Subject: Re: Access - ODBC - serial problem... Date: Thu, 8 Apr 2004 14:48:53 +0100 User-Agent: KMail/1.5 References: <6C0CF58A187DA5479245E0830AF84F420802A0@poweredge.attiksystem.ch> In-Reply-To: <6C0CF58A187DA5479245E0830AF84F420802A0@poweredge.attiksystem.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200404081448.53157.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/62 X-Sequence-Number: 3957 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