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: "Avis, Ed" <avised at kbcfp dot com>
Subject: RE: $sth->{NAME} doesn't work
Date: Jan 15 2004 10:50AM

Tim Bunce wrote:

>The DBI doc says:
>
>: Note that some drivers cannot provide valid values for some or all of
>: these attributes until after C<$sth-Eexecute> has been called.
>
>A statement handle should always have NAME, TYPE, NULLABLE etc
>attributes.  It should never be an error to ask for them. But the
>value returned may be undef, for example, if the statement has not been
>executed, the execute failed, or it's not a select statement.

If RaiseError is set, then shouldn't accessing one of these when it is
not available throw an exception rather than giving undef?

-- 
Ed Avis