freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
- To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
- Subject: RE: Losing last character of TEXT fields
- Date: Wed, 10 Jul 2002 16:02:30 +0200
>
> Ok, obviously we need a max buffer length passed to
> tds_convert (and we
> do), but where does blank padding and null termination belong? Those
> could easily be done after the fact in the API layer.
>
Note also that tds_convert_any check if destlen is -1 or -2 and do
padding/terminating for other conversion.
I don't see also the NULL case. What happen is a string is NULL? It should
have -1 as srclen and give some error copying string...
Also we must fix also conversion from unicode (we always append terminator).
In tds_convert_numeric we do tds_numeric_to_string(src,dest) without
checking if there is enough space on dest (same problem in money
conversion)...
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."
=================================
-
RE: Losing last character of TEXT fields
, (continued)
- RE: Losing last character of TEXT fields, Brian Bruns, 07/09/2002
- RE: Losing last character of TEXT fields, ZIGLIO Frediano, 07/10/2002
- RE: Losing last character of TEXT fields, Bill Thompson, 07/10/2002
- RE: Losing last character of TEXT fields, ZIGLIO Frediano, 07/10/2002
- RE: Losing last character of TEXT fields, Thompson, Bill D (London), 07/10/2002
- RE: Losing last character of TEXT fields, Brian Bruns, 07/10/2002
- RE: Losing last character of TEXT fields, Thompson, Bill D (London), 07/10/2002
- RE: Losing last character of TEXT fields, Brian Bruns, 07/10/2002
- RE: Losing last character of TEXT fields, James K . Lowden, 07/10/2002
- RE: Losing last character of TEXT fields, Thompson, Bill D (London), 07/10/2002
- RE: Losing last character of TEXT fields, ZIGLIO Frediano, 07/10/2002
- RE: Losing last character of TEXT fields, ZIGLIO Frediano, 07/10/2002
- RE: Losing last character of TEXT fields, Lowden, James K, 07/10/2002
- RE: Losing last character of TEXT fields, Eric Deutsch, 07/10/2002
- RE: Losing last character of TEXT fields, Brian Bruns, 07/10/2002
Archive powered by MHonArc 2.6.24.