Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: DIB:Pg returns select plan on execute

by chacham (Priest)
on Aug 17, 2012 at 15:44 UTC ( #988005=note: print w/ replies, xml ) Need Help??


in reply to DIB:Pg returns select plan on execute

For example:

eval{$db = DBI->connect("DBI:ODBC:$config{db_odbc}", $config{db_user}, + $config{db_pass}, {PrintError=>0, RaiseError=>1, AutoCommit=>0})}; error("Could not connect to database:", map{" DBI: $_"} split /\n/, $D +BI::errstr) if $@;

In this example, error() is a custom function to print/log errors.


Comment on Re: DIB:Pg returns select plan on execute
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2015-05-23 14:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (467 votes), past polls