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

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: cgg007(at)yahoo(dot)com
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05)
Date: 2003-08-29 19:08:56
Message-ID: m3k78we0xj.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Chris Gamache <cgg007(at)yahoo(dot)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

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Franco Violi 2003-08-30 07:39:46 Some corrections on psqlodbc driver
Previous Message Chris Gamache 2003-08-29 18:53:14 ODBC Connection Pooling (Windows 2000 MDAC 2.7 patched, pgodbc-7.02.00.05)