On Tue, Nov 11, 2003 at 05:44:40PM +0100, Jos I. Boumans wrote:
> Hi,
>
> I've just noticed something slightly inconvenient:
>
> if i tell DBI to connect to a postgres db, but i don't have DBD::Pg
> installed, it will not give me a warning of any kind, including when
> DBI->trace(5) is set, that
> i do not have the necessary driver installed. It simply silently fails.
Works for me:
$ perl -MDBI -e 'DBI->connect("dbi:Pg:foo",1,1)'
install_driver(Pg) failed: Can't locate DBD/Pg.pm in @INC (@INC contains:
/home/value/perl /usr/local/perl582/lib/5.8.2/i386-freebsd
/usr/local/perl582/lib/5.8.2 /usr/local/perl582/lib/site_perl/5.8.2/i386-freebsd
/usr/local/perl582/lib/site_perl/5.8.2 /usr/local/perl582/lib/site_perl .) at (eval
120) line 3.
Perhaps the DBD::Pg perl module hasn't been fully installed,
or perhaps the capitalisation of 'Pg' isn't right.
Available drivers: ExampleP, Proxy, Sponge, mysql.
at -e line 1
It would be a *big* help if you could post a test case, like I have used
above, that demonstrates the problem.
> On top of that, when then trying to access $DBI::errstr, DBI informs me
> it could not access that string and dies.
Should I just guess what the error message was? Any chance you could
post a test case for this along with the error message you get?
> on a side note, http://dbi.perl.org/support/ has all the links to
> 'details' about the mailing lists pointing at
> http://lists.perl.org/showlist.cgi?name=dbi-announce for all 3 mailing
> lists.
Thanks. I'll forward this to [EMAIL PROTECTED]
Tim.