Grigory Ptashko wrote:
Apache::DBI 0.99 (taken from http://p6m7g8.net/Apache-DBI)
Just so you know, its sitting in my CPAN as well.
In my startup.pl I have: use Apache::DBI (); $Apache::DBI::DEBUG = 2; Apache::DBI->connect_on_init("DBI:Pg:dbname=test", "test", "test", {AutoCommit => 0, RaiseError => 1, PrintError => 0});
That looks okay
After startup, I see the following in error_log: 20297 Apache::DBI PerlChildInitHandler 20298 Apache::DBI PerlChildInitHandler 20299 Apache::DBI PerlChildInitHandler 20300 Apache::DBI PerlChildInitHandler 20301 Apache::DBI PerlChildInitHandler 20308 Apache::DBI PerlChildInitHandler
This is good.
#!/usr/bin/perl use DBI; print "Content-type: text/plaIn\n\n";
^ that should i not I
I don't see ANYTHING in my error_log file EXCEPT: >8-------------- Issuing rollback() for database handle being DESTROY'd without explicit disconnect() at /usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd/ModPerl/RegistryCooker.pm line 203.
Make sure in your startup file that you are loading Apache::DBI before anything else that might pull in DBI.
-- END ------------------------------------------------------------ What doesn't kill us can only make us stronger. Nothing is impossible. Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198 Consultant / http://p6m7g8.net/Resume/ Senior Developer / Liquidity Services, Inc. http://www.liquidityservicesinc.com http://www.liquidation.com http://www.uksurplus.com http://www.govliquidation.com http://www.gowholesale.com