Skip to Content.
Sympa Menu

freetds - RE: TODO

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: "'TDS Development Group'" <freetds AT franklin.oit.unc.edu>
  • Subject: RE: TODO
  • Date: Wed, 4 Sep 2002 17:26:02 +0100


Brian,

The problem is as follows:

calling dbconvert() to convert varchar -> varchar bypasses the call to
tds_convert().

however when tds_convert() is called to convert a varchar of 0 length to a
varchar it returns a length of 0 ( quite right too ).

Unfortunately the error handling at the bottom of tds_convert captures the
return of the sub-functions ( which is the length of the converted data or
TDS_FAIL)
Unfortunately TDS_FAIL is #defined to 0

you can deduce what's happening...


maybe we should somethin other than TDS_FAIL in convert.c
#define TDS_CONVERT_FAIL -1 perhaps ?

Bill






  • TODO, ZIGLIO Frediano, 09/04/2002
    • <Possible follow-up(s)>
    • RE: TODO, Lowden, James K, 09/04/2002
    • Re: TODO, Brian Bruns, 09/04/2002
    • RE: TODO, Brian Bruns, 09/04/2002
    • RE: TODO, Thompson, Bill D (London), 09/04/2002
    • RE: TODO, Brian Bruns, 09/04/2002
    • RE: TODO, Thompson, Bill D (London), 09/04/2002
    • RE: TODO, Eric Deutsch, 09/04/2002
    • RE: TODO, Brian Bruns, 09/04/2002
    • RE: TODO, Thompson, Bill D (London), 09/04/2002
    • RE: TODO, Frediano Ziglio, 09/04/2002
    • RE: TODO, Lowden, James K, 09/04/2002
    • RE: TODO, Frediano Ziglio, 09/04/2002

Archive powered by MHonArc 2.6.24.

Top of Page