Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 22EDA9FC484 for ; Fri, 1 Jun 2007 12:10:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 27403-01-7 for ; Fri, 1 Jun 2007 12:09:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 9C94C9FC4A2 for ; Fri, 1 Jun 2007 12:09:45 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id B179B3095D; Fri, 1 Jun 2007 17:09:44 +0200 (MET DST) From: "Ben Trewern" X-Newsgroups: pgsql.interfaces.odbc Subject: Re: Replacing IDENTITY with lastval() Date: Fri, 1 Jun 2007 16:10:13 +0100 Organization: Hub.Org Networking Services Lines: 10 Message-ID: References: <463CB520.90208@gmx.net> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.157 tagged_above=0 required=5 tests=AWL=0.156, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200706/5 X-Sequence-Number: 8994 > Shouldn't you be using INSERT ... RETURNING .. ; for this? Seems like > the perfect useage. > Sorry to reply to myself but I just looked this up and it is only supported from 8.2 onwards. :-( Ben