I've a DBD::ADO function call OpenSchema, which requires a parameter
like 'adPrimaryKeys'. When the constant is not defined, I set an error
value/message and return to the caller.

        unless (exists $ado_consts->{$var}) {
                return DBI::set_err($dbh, 1,
                        "OpenSchema called with unknown parameter: $var");
        }

However, when I check the $dbh->err value, it is undef.  As is the
$dbh->errstr.  Bug?  Feature? Or did I miss something in the error
call?  Better yet, should I call die or croak at this point instead?

Tom

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to