Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How can i find out the information that is returned by the perl dbi when it encounters an error and dies when RaiseError=1. I can't find any documentation for what the error message contains. Is there anyway I can control the information in the error mesage. I believe perl dbi has these useful methods for error checking
It would be good if RaiseError=1 returned information from all 3 of these methods but i don't know how to find out what it returns. thanks a lotDBI defines several error diagnostic methods $rv = $h->err(); = error number $str = $h->errstr(); = error string $str = $h->state(); = database state
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dbi raiseError = 1
by locked_user sundialsvc4 (Abbot) on Dec 21, 2010 at 16:20 UTC | |
by Anonymous Monk on Dec 22, 2010 at 03:36 UTC | |
|
Re: dbi raiseError = 1
by Anonymous Monk on Dec 21, 2010 at 00:41 UTC | |
|
Re: dbi raiseError = 1
by thargas (Deacon) on Dec 21, 2010 at 12:55 UTC |