pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedConnection Pooling and currval
2+ messages / 1 participants
[nested] [flat]
* Connection Pooling and currval
@ 2003-02-25 20:12 Chris Gamache <cgg007@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Chris Gamache @ 2003-02-25 20:12 UTC (permalink / raw)
To: pgsql-odbc
I've just 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/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Connection Pooling and currval
@ 2003-02-28 18:58 Chris Gamache <cgg007@yahoo.com>
parent: Chris Gamache <cgg007@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Chris Gamache @ 2003-02-28 18:58 UTC (permalink / raw)
To: pgsql-odbc
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/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-02-28 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-25 20:12 Connection Pooling and currval Chris Gamache <cgg007@yahoo.com>
2003-02-28 18:58 ` Chris Gamache <cgg007@yahoo.com>
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