On Nov 12, 2003, at 10:38 PM, Tim Bunce wrote:


Apparently, the error is only in $@, and not $DBI::errstr, which in
itself may not be a bug, just slightly surprising on my end.

$DBI::errstr can't be read because the driver didn't get loaded.
ok, as long as it's intended behaviour...

install_driver is defined to die if loading a driver failed.
Because you used an eval and didn't print $@ we can't see the error.
true... i found that bit out only later (nested code), i was merely surprised $DBI::errstr didn't have the last error...

What does this output:

perl -MDBI -e 'DBI->connect("dbi:Pg:foo",1,1)'
that works just as expected, and gives the error about the missing driver.

so case closed, notabug :)

--
        Jos Boumans

"Cocaine is God's way of telling you you make too much money"

CPANPLUS http://cpanplus.sf.net



Reply via email to