Skip to Content.
Sympa Menu

freetds - RE: [freetds] major error with ct_bind

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <ThompBil AT exchange.uk.ml.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] major error with ct_bind
  • Date: Fri, 7 Mar 2003 09:25:55 -0000

Mark,

But this code in _ct_bind_data should convert the passed (CS_*) datatype to
the a type (SYB*) that cs_convert understands...

desttype = _ct_get_server_type(curcol->column_bindtype);

Bill

> -----Original Message-----
> From: Mark J. Lilback [SMTP:mark AT lilback.com]
> Sent: 07 March 2003 04:09
> To: FreeTDS Development Group
> Cc: James K.Lowden
> Subject: Re: [freetds] major error with ct_bind
>
> At 10:53 PM -0500 3/6/2003, James K.Lowden wrote:
> >On Thu, 6 Mar 2003 22:43:34 -0500, "Mark J. Lilback" <mark AT lilback.com>
> >wrote:
> >>
> >> 1) there is no function to determine if a data type is a fixed-length
> >> type
> >
> >token.c:static int tds_get_varint_size(int datatype);
> >
> >Will that do?
>
> No, but the macro is_fixed_type (tds.h) will... cs_convert seems to
> be using the tds data type values instead of the CS_xxx_TYPE values,
> so that will work.
>
> I'm adding a function to return the size of a fixed length, suitable
> for passing to malloc.
>
> It is a pretty easy fix if the src_type and dest_type are the same,
> which in my case, they always are. Otherwise, it goes down to the tds
> conversion functions, where I'm more hesitant to change things since
> they can effect dblib and odbc.
>
> --
> __________________________________________________________________________
> "They that can give up essential
> liberty
> Mark J. Lilback to obtain a little temporary safety
> <mark AT lilback.com> deserve neither liberty or safety."
> http://www.lilback.com/ -- Benjamin Franklin
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page