Skip to Content.
Sympa Menu

freetds - Re: Convert patches...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Convert patches...
  • Date: Fri, 2 Aug 2002 17:30:24 +0200


>
> > ctlib/dblib specification document that buffer is unchanged
> if text exceed
> > destlen ?
> > I not I don't see the problem.
> >
>
> they don't say, but practically that is what happens...
>

Cruncking...

- conversion from fixed size type to fixed size type can be handled by
tds_convert without problem
- conversion from variable size type (char/binary/text/varchar/image/blob
and others) to fixed size type can be handled by tds_convert too

So problem are conversion to variable size.
- conversion from variable size to variable size can be handled directly
from libraries (they are merely binary copy).
- conversion from fixed size to variable size must be passed to tds_convert
but cannot be copied to destination by tds_convert. So pasing back to
library convert is a solution, but require allocate buffer and put back to
library. Alternative solution is the old solution (tds_convert know all
method to pass back data to library, but implementation) and a callback
solution (tds_convert call at and a library supplied function to do the
final conversion...)

I think I'll try to implement this last solution (from latest CVS version).
It should solve all problem...

Also some problem seen in latest patches:
- vb field in CONV_RESULT is only written in tds_convert but not back to
calling program
- in dblib you test and process if desttype == srctype but you fall back to
tds_convert

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================




Archive powered by MHonArc 2.6.24.

Top of Page