Re: possible bug in DB/pgsql.php

From: Date: Mon, 19 Feb 2001 23:56:48 +0000
Subject: Re: possible bug in DB/pgsql.php
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1388@lists.php.net to get a copy of this message
fabrizio.ermini@sysdat.it wrote: > > On 19 Feb 2001, at 13:27, Stig S. Bakken wrote: > > > fabrizio.ermini@sysdat.it wrote: > > > > > > Hmm, maybe I'm straying too far...I'm not too content of my own > > > suggestions. Your turn... > > > > I've implemented your suggestion now and added a transaction test for > > pgsql as well. Could you give it a shot and see if it solves your > > problem? > > > Hmm. Sadly, my work took out whole afternoon and I didn't have > the time to do a real test of the source, so I just v-grepped it. > I'll do a real benchmark ASAP... for the moment, I'm still wondering > if it could work without storing somewhere the connection id. If you > have more than one connection in a page, how do you recognize > when one has an open transaction or not? In the test (DB/tests/pgsql/011.phpt) I opened a separate unix domain socket connection to postgres and do the select from that connection. I added a "dsn" property to DB_common to make replicating the connection possible. - Stig

« previous php.pear (#1388) next »