|
|
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
|