Tim Bunce <[EMAIL PROTECTED]> writes:
> > $DBI::err - the error code of the last DBI method call.
> > $DBI::errstr - the error message of the last DBI method call.
> >
> > NOTE: the values of these variables is guaranteed to be valid only
> > after a method has failed.
>
> But if the DBI actually enforced that by, for example, never clearing
> them and just updating them when an error occurred, it would break
> a lot of code.
Perhaps my wording was poor - I'm *not* suggesting DBI enforce it,
merely let users know that DBI only enforces their correctnes *after*
an error - in other words if the previous method didn't error, then
the values of $DBI::{err,errstr} may be invalid, so don't check them.
Cheers,
jas.