Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05) - Mailing list pgsql-odbc

From Doug McNaught
Subject Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05)
Date
Msg-id m3k78we0xj.fsf@varsoon.wireboard.com
Whole thread Raw
In response to ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05)  (Chris Gamache <cgg007@yahoo.com>)
Responses Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05)
List pgsql-odbc
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


pgsql-odbc by date:

Previous
From: Chris Gamache
Date:
Subject: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05)
Next
From: Hartmut Raschick
Date:
Subject: unnecessary auto-transaction-rollback from driver - part 1 of 2