freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase)
- From: Mark Schaal <mark AT champ.tstonramp.com>
- To: freetds AT franklin.oit.unc.edu
- Subject: Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase)
- Date: Thu, 18 May 2000 14:11:21 -0700 (PDT)
======================================================================
int dbnumcols(dbproc)
Returns:
The number of columns in the current set of results. If there are no
columns, dbnumcols returns 0.
======================================================================
The implication is that the query was a select, but it won't break
the protocol to return 0 for other cases. Probably a good idea if
that is what Sybase does. That is how the current CVS appears to
deal with things.
Mark
>
> The sybase_query abend everytime I submit query other than SELECT
> (syntaktically incorrect SELECTs abend too).
> I look into PHP code - it calls dbnumcols which abend because the
> tds->res_info == NULL (and dbnumcols try to return
> tds->res_info->num_cols).
>
> Original Sybase's DLLs allow me to call dbnumcols anytime (unless dbproc is
> NULL).
>
> It's FreeTDS bug, so I should submit patch (I already have one) ?
> Or it is protocol violation to call dbnumcols anytime (so it is PHP bug -
> how I should determine if dbnumcols call is allowed ?) ?
>
> (Note: PHP is compiled with --with-sybase not --with-sybase-ct)
>
> Thanx for reply
>
> Dan
>
> ---
> You are currently subscribed to freetds as: mark AT champ.tstonramp.com
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
--
Mark J. Schaal Phone: (909) 620-7724
TST On Ramp Fax: (909) 620-8174
System Administrator E-Mail: mark AT tstonramp.com
-
SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase),
Dan Lukes, 05/18/2000
- <Possible follow-up(s)>
- Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase), Brian Bruns, 05/18/2000
- Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase), Mark Schaal, 05/18/2000
- Re: SIGSEGV in dblib.c/dbnumcols (PHP 3.0.16 --with-sybase), Dan Lukes, 05/18/2000
Archive powered by MHonArc 2.6.24.