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
In reply to Re: (jeffa) Re: Script does not die when DB connection fails
by davorg
in thread Script does not die when DB connection fails
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |