Skip to Content.
Sympa Menu

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: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Stored Procedures & MSSQL & CTLIB
  • Date: Wed, 13 Nov 2002 21:34:31 -0000


Thanks for the quick reply.

Keep up the good work!

Regards

Darren Smith

----- 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
$subst('Email.Unsub')
>





Archive powered by MHonArc 2.6.24.

Top of Page