PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

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