Re: Transactions corruption and persistent connections

2004-05-10 Thread Hans Poo R.
Thanks a lot Perrin, i will follow your recomendations... i've used the global variable for the database handler for simplicity and to avoid the local declaration and the method call, but i see the point in your advice. I will debug the code with more detail. Hans On Fri, 07 May 2004 18:16:48 -0

Re: Transactions corruption and persistent connections

2004-05-07 Thread Perrin Harkins
On Fri, 2004-05-07 at 17:03, Hans Poo R. wrote: > Fosis::handler is the main Dispatcher of the dynamic content. It can use the > database handler via a Global variable $dbh It's not a good practice to put a database handle in a global. Apache::DBI does it, but it also pings the handle before usin

Re: Transactions corruption and persistent connections

2004-05-07 Thread Hans Poo R.
Perrin I have an InitHandler in a Files section (in order to promote perl i put this extension to the files). PerlInitHandler General::init_dbk SetHandler perl-script PerlHandler Fosis Fosis::handler is the main Dispatcher of the dynamic content. It can use the database handler

Re: Transactions corruption and persistent connections

2004-05-06 Thread Perrin Harkins
On Thu, 2004-05-06 at 12:42, Hans Poo R. wrote: > I removed the manual rollback and let the job to Apache::DBI, the problem is > that after the change, the message about the handle destroyed still appears in > the log. I activated the $Apache::DBI::DEBUG variable, but the message persist > (now wit

Re: Transactions corruption and persistent connections

2004-05-06 Thread Hans Poo R.
Hi Perrin I removed the manual rollback and let the job to Apache::DBI, the problem is that after the change, the message about the handle destroyed still appears in the log. I activated the $Apache::DBI::DEBUG variable, but the message persist (now with the DEBUG information). Issuing rollback()

Re: Transactions corruption and persistent connections

2004-05-05 Thread Perrin Harkins
On Wed, 2004-05-05 at 13:01, Hans Poo R. wrote: > I want to know, if it's necessary to rollback database connections on each > request arrive with a PerlInitHandler, when using persistent database connections. Apache::DBI already does that for you in a cleanup handler. You are using Apache::DBI,

Transactions corruption and persistent connections

2004-05-05 Thread Hans Poo R.
Hi all I'am using mod_perl-1.27, apache 1.3.28, Linux RedHat 9 and postgresql 7.4.2. I want to know, if it's necessary to rollback database connections on each request arrive with a PerlInitHandler, when using persistent database connections. This is the way i'am doing now (rolling back manually