Skip to Content.
Sympa Menu

freetds - Re: [freetds] SP parameters

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Cc: "Gustavo A. Gonzalez" <ggonzalez AT telviso.com.ar>
  • Subject: Re: [freetds] SP parameters
  • Date: Mon, 26 Jun 2006 16:26:52 +0200

>
> > From: Gustavo A. Gonzalez
> > Sent: Thursday, June 15, 2006 11:15 AM
> >
> >
> > Any one can tell me if there some bug on freetds 0.63 invoking a
> > stored procedure on MSSQL?. i' ve developed an application in C
> > that works fine with freetds 0.62 but with 0.63 version it crashes.
> > I' ve got that output error:
> >
> > query.c:1058: tds_put_data: Assertion `curcol->column_varint_size'
> > failed
>
> Here's the code:
>
> 1049 tdsdump_log(TDS_DBG_INFO1, "tds_put_data: null
> param\n");
> 1050 switch (curcol->column_varint_size) {
> 1051 case 4:
> 1052 tds_put_int(tds, -1);
> 1053 break;
> 1054 case 2:
> 1055 tds_put_smallint(tds, -1);
> 1056 break;
> 1057 default:
> 1058 assert(curcol->column_varint_size);
> 1059 /* FIXME not good for
> SYBLONGBINARY/SYBLONGCHAR
> 1059 (still not supported) */
> 1060 tds_put_byte(tds, 0);
> 1061 break;
> 1062 }
>
> It seems you're using a NULL parameter for a column with a weird
> datatype, and we don't determine the size correctly. :-/
>
> > what is the solution?.
>
> Use a different datatype, I think.
>

Gustavo, could you please post the dbrpcparam lines?

freddy77





Archive powered by MHonArc 2.6.24.

Top of Page