Skip to Content.
Sympa Menu

freetds - Re: pre3 lessons

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: pre3 lessons
  • Date: Wed, 4 Sep 2002 15:08:28 -0400


> From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> Sent: September 4, 2002 2:56 PM
>
> > 3. tds_convert() shouldn't issue an error for anticipated
> zero-length
> > conversions.
>
> dbconvert and cs_convert already check if srclen == 0 and do the right
> things... I think odbc and tsql should be changed to this behaviour
> too... But not so sure... What's your opinion ?

You're right. odbc and tsql don't have any way of knowing that zero
indicates an error.

Testing for srclen > 0 is no more complex than testing for -1 (Bill's
suggestion), and allows for skipping the call to tds_convert().

We should fix odbc and tsql.

--jkl


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that for certain accounts we do not accept
orders and/or instructions by e-mail, and for those accounts we will not be
responsible for carrying out such orders and/or instructions. Kindly refrain
from sending orders or instructions by e-mail unless you have confirmed that
we accept such communications for your account. Please also note that to
satisfy regulatory requirements we review the outgoing and incoming e-mail
correspondence of staff members serving certain functions.






Archive powered by MHonArc 2.6.24.

Top of Page