I would recommend not to change RaiseError back to 0. It just make things easier.That depends.
For one-off scripts it certainly makes things easier, however when you write larger applications you almost certainly want to raise your own exceptions so you can then catch them by type (using Exception::Class or something similar - "Perl best practices" has a chapter on it) and then you are better off doing something like
rather than using RaiseError.$sth->execute or MyApp::DBException( error => $sth->errstr )->throw;
In reply to Re^2: DB2 checking for an error on select
by morgon
in thread DB2 checking for an error on select
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |