From: Doug McNaught <doug@mcnaught.org>
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)
Date: 29 Aug 2003 15:08:56 -0400
Message-ID: <m3k78we0xj.fsf@varsoon.wireboard.com> (raw)
References: <20030829185314.15561.qmail@web13808.mail.yahoo.com>
Chris Gamache <cgg007@yahoo.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: doug@mcnaught.org, cgg007@yahoo.com
Subject: Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05)
In-Reply-To: <m3k78we0xj.fsf@varsoon.wireboard.com>
References: <20030829185314.15561.qmail@web13808.mail.yahoo.com> <m3k78we0xj.fsf@varsoon.wireboard.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox