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 1F10CD1B8C0 for ; Tue, 2 Sep 2003 15:17:44 +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 68841-10 for ; Tue, 2 Sep 2003 12:17:12 -0300 (ADT) Received: from web13804.mail.yahoo.com (web13804.mail.yahoo.com [216.136.175.14]) by svr1.postgresql.org (Postfix) with SMTP id A7D76D1B8E5 for ; Tue, 2 Sep 2003 12:17:11 -0300 (ADT) Message-ID: <20030902151710.68116.qmail@web13804.mail.yahoo.com> Received: from [216.173.173.66] by web13804.mail.yahoo.com via HTTP; Tue, 02 Sep 2003 08:17:10 PDT Date: Tue, 2 Sep 2003 08:17:10 -0700 (PDT) From: Chris Gamache Reply-To: cgg007@yahoo.com Subject: Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05) To: pgsql-odbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/8 X-Sequence-Number: 3206 Doug, thanks for the reply! Bruce, back me up (or shoot me down..): currval() should be undefined when a connection is first made for any given sequence. If a connection is recycled, shouldn't currval() be undefined for any given sequence to simulate the behavior of a connection first being made? CG --- Doug McNaught wrote: > 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 > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com