in reply to DBI::Sybase sometimes returns nothing, but does not generate an error -> how can I catch this?
Other comments: you set RaiseError on the connect (good for you), but check for errors on the next line. If there is an error on connect, the program will not reach the next line (for DBI 0.91 and later). The handle_db_error() function will never be called either (RaiseError causes the program to die with an error message). If you want special processing of errors, either use HandleError, or wrap all your DBI code in an eval block and check $@ afterward.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI::Sybase sometimes returns nothing, but does not generate an error -> how can I catch this?
by svenXY (Deacon) on Jan 12, 2005 at 07:46 UTC |