On Mon, Sep 29, 2003 at 11:35:29PM +0100, Tim Bunce wrote: > I don't see a big problem with code that's trying to be very > portable having to check for a small number of specific codes > (23000, 40002, 72000 etc)
As soon as multiple codes are involved, a convenience subroutine (in DBI, or DBI::Error, or something), would seem appropriate to me; something akin to stat's S_ISDIR, like DBI_ISVIOLATION ... Mx.
