RE: $sth->{NAME} doesn't work

From: Michael Peppler (mpeppler_at_peppler.org)
Date: 01/15/04


To: "Avis, Ed" <avised@kbcfp.com>
Date: Thu, 15 Jan 2004 09:51:28 -0800

On Thu, 2004-01-15 at 01:54, Avis, Ed wrote:
> Tim Bunce wrote:
>
> >>>DBI.xs:1664: croak("Can't get %s->{%s}: unrecognised
> >>>attribute",neatsvpv(h,0),key);
>
> >It's a driver bug. The FETCH of the sth NAME attribute should never
> >reach the DBI's code. The driver should handle it.
>
> So you're saying that $sth->{NAME} should always be handled by the
> driver, whether or not the column names are available, and that it is
> the driver's responsibility to print a message such as 'you should
> call execute() first' rather than leaving it to DBI to raise an error.
>
> In that case, this looks like a bug report for DBD::Sybase. I imagine
> that the other statement attributes NUM_OF_FIELDS should behave in the
> same way.

Logged as bug # 541.

Michael

-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                 http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or 
long term contract positions - http://www.mbay.net/~mpeppler/resume.html


Relevant Pages

  • Re: + input-new-force-feedback-interface.patch added to -mm tree
    ... hmmm conditional locking like this always makes me very nervous... ... is preventing ->playback from changing halfway a locked sequence? ... It's returned when the device is mem-capable but driver doesn't ... a driver bug, so maybe this is not correct use for -ENOSYS. ...
    (Linux-Kernel)
  • Re: file system deadlock - the whole story?
    ... load and there's a common controller in use, maybe we're looking at a driver bug. ... Bugs of those sort typically look a lot like what you describe: an I/O is "lost" and so eveything that depends on the I/O wedges waiting for it, leading to a lot of processes hanging around waiting for vnode locks, etc. ... Debug the driver when the system is in the wedged state. ...
    (freebsd-stable)
  • Re: sis900 dies during long transfer (obsd 3.6 release, i386)
    ... I'm positive it's a driver bug. ... > SIS cards. ... I also went to look at the Linux 2.4 sis900 driver ...
    (comp.unix.bsd.openbsd.misc)
  • Re: b43 locks the machine when resuming after suspend to disk
    ... Anybody have a stable tree around to see if that applies? ... When a driver rejects a frame in it's ->txcallback, ... otherwise mac80211 can go into a loop here. ... driver bug. ...
    (Linux-Kernel)
  • Re: + input-new-force-feedback-interface.patch added to -mm tree
    ... please just use the existing prdebugthing for this, no need to invent ... It's returned when the device is mem-capable but driver doesn't ... a driver bug, so maybe this is not correct use for -ENOSYS. ...
    (Linux-Kernel)