sybperl-l Archive
Up Prev Next
From: "Miao, Qian (PME)" <QianM at exchange dot ml dot com>
Subject: $DB_ERROR
Date: Mar 13 2000 10:03PM
I am trying to use $DB_ERROR to check the return status of nsql, but
$DB_ERROR cannot trap errors when the SQL statement is definitely wrong.
@ret = $dbh->nsql(SQL_statement, "ARRAY");
if ($DB_ERROR)
{
print STDERR "error message....";
}
I have set the dbmsghandle() and dberrhandle() calls at the beginning of the
program.
what did I do wrong?
Thanks in advance.
Katherine Wang
|