Skip to Content.
Sympa Menu

freetds - Re: New PR/478 entered by mattd@myrealbox.com

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: mattd AT uky.edu
  • Cc: freetds AT franklin.metalab.unc.edu
  • Subject: Re: New PR/478 entered by mattd AT myrealbox.com
  • Date: 20 Nov 2002 13:27:10 -0800

[CC'd to the FreeTDS mailing list]


Right. But that command *will* return at least one row, with at least
one column (the status result).

If I get to the point where ct_res_info() is called there should be a
fetchable result row, which means at least one column.

My guess is that this is a FreeTDS bug(let).

Michael

On Wed, 2002-11-20 at 13:12, Matt DeFoor wrote:
> "exec pMarkProcessed \"$host\",\"$user\",\"$code\",$errcode"
>
> On Wednesday 20 November 2002 04:01 pm, you wrote:
> > What is the SQL request in $command?
> >
> > Michael
> >
> > On Wed, 2002-11-20 at 12:52, mattd AT myrealbox.com wrote:
> > > New or modifed bug information for Bug ID 478
> > >
> > > Category: DBD::Sybase
> > > Type/Priority: Change / Low
> > > Submitted By: mattd AT myrealbox.com
> > > Date: Nov 20 2002 12:52PM
> > > Status: New
> > > Summary: $sth->execute produces warning 0 columns are returned
> > > Description:
> > > Using FreeTDS 0.60 nightly snapshot. If the number of columns returned
> > > after the following produces a warning. Is it necessary?
> > >
> > > $sth->$dbh->prepare($command);
> > > $sth->execute;
> > >
> > > dbdimp.c has the following:
> > >
> > > if(numCols <= 0) {
> > > warn('ct_res_info() returned 0 columns');
> > > DBIc_NUM_FIELDS(imp_sth) = numCols;
> > > imp_sth->numCols = 0;
> > > goto GoodBye;
> > > }
> > > if(dbis->debug >= 2)
> > > PerlIO_printf(DBILOGFP, ' ct_res_info() returns %d columns\n',
> > > numCols);
> > >
> > > I don't remember it behaving this way with DBD::Sybase 0.94 and FreeTDS
> > > 0.50/0.53. My code has not changed.
> > >
> > > Thanks for any insight you might have.
> > >
> > > Log History:
--
Michael Peppler / mpeppler AT peppler.org / http://www.mbay.net/~mpeppler
mpeppler AT zetatools.com / ZetaTools, Inc / http://www.zetatools.com
ZetaTools: Call perl functions as Sybase stored procedures!

Attachment: signature.asc
Description: This is a digitally signed message part




Archive powered by MHonArc 2.6.24.

Top of Page