in reply to (jeffa) Re: Script does not die when DB connection fails
in thread Script does not die when DB connection fails
Why not check the return code from both prepare and execute. On many database systems prepare will attempt to compile the SQL and will return details of syntax errors.
And rather than checking the return code from every DBI call, why not set the RaiseError attribute when connecting to the database.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(arturo) Re: Script does not die when DB connection fails
by arturo (Vicar) on May 25, 2001 at 18:09 UTC |