Skip to Content.
Sympa Menu

freetds - Re: [freetds] Re: Stored Procedures & MSSQL & CTLIB

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Darren Smith" <data AT barrysworld.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Re: Stored Procedures & MSSQL & CTLIB
  • Date: Wed, 5 Feb 2003 11:31:43 -0000

Hi

A few months ago, i asked about the status of the CTLIB code for Stored
Procedures.

I was wondering how everyones got on with this?

Best Regards

Darren Smith
Game Digital Ltd

> ----- Original Message -----
> From: "Frediano Ziglio" <freddyz77 AT tin.it>
> To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
> Sent: Wednesday, November 13, 2002 7:35 PM
> Subject: [freetds] Re: Stored Procedures & MSSQL & CTLIB
>
>
> > Il mer, 2002-11-13 alle 20:26, Darren Smith ha scritto:
> > > Hi
> > >
> > > I just noticed my version of ct.c has:
> > >
> > > CS_RETCODE ct_param(CS_COMMAND *cmd, CS_DATAFMT *datafmt, CS_VOID
*data,
> > > CS_INT datalen, CS_SMALLINT indicator)
> > > {
> > > TDSSOCKET *tds;
> > > TDSDYNAMIC *dyn;
> > > TDSINPUTPARAM *param;
> > > int elem;
> > > tdsdump_log(TDS_DBG_FUNC, "%L inside ct_param()\n");
> > > tdsdump_log(TDS_DBG_INFO1, "%L ct_param() data addr = %d data
length
> =
> > > %d\n", data, datalen);
> > > tds = cmd->con->tds_socket;
> > > elem = tds_lookup_dynamic(tds, cmd->dyn_id);
> > > dyn = tds->dyns[elem];
> > > param = tds_add_input_param(dyn);
> > > param->column_type = _ct_get_server_type(datafmt->datatype);
> > > param->varaddr = data;
> > > if (datalen==CS_NULLTERM) {
> > > param->column_bindlen = 0;
> > > } else {
> > > param->column_bindlen = datalen;
> > > }
> > > param->is_null = indicator;
> > > return CS_SUCCEED;
> > > }
> > >
> > > I'm using freetds-0.60.
> > >
> > > Does this mean it should work?
> > >
> > > Regards
> > >
> > > Darren.
> > >
> >
> > No, code above is very old and never worked. The code correctly saved
> > the binding parameter, but libtds code never filled parameters, so these
> > lines was useless. Current code read parameters but do not copy data
> > back to client cause all data exchange method as completely changed.
> >
> > This is a work in progress, expect implementation before next release.
> >
> > freddy77
> >
> >
> >
> > ---
> > You are currently subscribed to freetds as: [data AT barrysworld.com]
> > To unsubscribe, forward this message to
> leave-freetds-150496Q AT franklin.oit.unc.edu
> >
>





Archive powered by MHonArc 2.6.24.

Top of Page