On Tue, Apr 20, 2004 at 10:28:12PM +0530, Jason E. Stewart wrote:
> 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.

Sure. My point was that that amounts to the same thing.
But DBI v2 will probably have some suitable compromise.

Tim.

Reply via email to