X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B8AA1475A45 for ; Fri, 28 Feb 2003 14:29:34 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 04895-07 for ; Fri, 28 Feb 2003 14:29:23 -0500 (EST) Received: from web13801.mail.yahoo.com (web13801.mail.yahoo.com [216.136.175.11]) by postgresql.org (Postfix) with SMTP id 95139475A71 for ; Fri, 28 Feb 2003 13:58:25 -0500 (EST) Message-ID: <20030228185825.23585.qmail@web13801.mail.yahoo.com> Received: from [216.173.173.66] by web13801.mail.yahoo.com via HTTP; Fri, 28 Feb 2003 10:58:25 PST Date: Fri, 28 Feb 2003 10:58:25 -0800 (PST) From: Chris Gamache Reply-To: cgg007@yahoo.com Subject: Connection Pooling and currval To: pgsql-odbc@postgresql.org In-Reply-To: <20030225201215.50956.qmail@web13805.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/101 X-Sequence-Number: 2719 I've enabled Connection Pooling on the PostgreSQL+ (Beta) 7.02.00.05, and I think I'm having some state problems. I think currval() is returning a value from a recycled connection where it should be undefined. I can not duplicate this problem because I can not get the timing right, but it is indicitive of ODBC pulling an active connection from the connection pool, and PostgreSQL thinking it is the same connection as before... I'm using a DSN-less connection... Can I modify this string to ensure that stateful variables are reset even though the connection has not been (really) severed? Here's my connection string "Provider=MSDASQL.1;Password=xxxxxxx;Persist Security Info=True;User ID=xxxxxxx;Mode=ReadWrite;Extended Properties=""DRIVER={PostgreSQL+ (Beta)};DATABASE=xxxxxxx;SERVER=10.10.0.1;PORT=5432;UID=xxxxxxx;PWD=xxxxxxx;READONLY=0;PROTOCOL=6.4;FAKEOIDINDEX=1;SHOWOIDCOLUMN=1;ROWVERSIONING=0;SHOWSYSTEMTABLES=0;CONNSETTINGS=""" Any other suggestions? CG __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/