X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 19418D1B550 for ; Fri, 29 Aug 2003 19:10:40 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 51514-01 for ; Fri, 29 Aug 2003 16:10:30 -0300 (ADT) Received: from varsoon.wireboard.com (www.wireboard.com [216.151.155.101]) by svr1.postgresql.org (Postfix) with ESMTP id 5403CD1B8A8 for ; Fri, 29 Aug 2003 16:10:29 -0300 (ADT) Received: from doug by varsoon.wireboard.com with local (Exim 3.35 #1) id 19socC-0003bF-00; Fri, 29 Aug 2003 15:08:56 -0400 To: cgg007@yahoo.com Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05) References: <20030829185314.15561.qmail@web13808.mail.yahoo.com> From: Doug McNaught Date: 29 Aug 2003 15:08:56 -0400 In-Reply-To: Chris Gamache's message of "Fri, 29 Aug 2003 11:53:14 -0700 (PDT)" Message-ID: Lines: 14 User-Agent: Gnus/5.0806 (Gnus v5.8.6) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/73 X-Sequence-Number: 3193 Chris Gamache writes: > We have a problem where the value of currval() transitions from one pooled > connection to another with pgodbc-7.02.00.05. I am wondering if pgodbc has been > fixed to wipe connection-related variables like currval and nextval when a > pooled connection is recycled. Is there perhaps some setting that I am missing? If this happens, your application code is broken. You should always call nextval() before calling currval() on a given connection. These are server-side functions (not variables) and the ODBC driver can't "reset" them. -Doug