Tim Bunce wrote: > join "\n", ... > > Very old (pre perl5!) versions of the DBI spec (or DBPerl as it then was) > mentioned that specifically. I'll add it to the DBI docs.
Indeed, that's what actually happens (for $errstr). But $err is another story (and don't ask for $state). Imagine that my Errors collection contains exactly one error most of the time, but may contain warnings and errors. Error codes have the first bit set (if the ADO provider plays well). Then I'll do something like this: for ( @Errors ) { $errstr .= $_->Description . ... . $_->Number ... $err |= $_->Number; # $state = $_->SQLState # ??? } $err = 0 unless $err & 1 << 31; # solely warnings $h->set_err( $err, $errstr ); To compensate for a loss of information in $err, these values are part of $errstr too. Steffen