freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: format attribut never initialised in CS_DATAFMT.
- From: "Castellano, Nicholas" <Nicholas_Castellano AT acml.com>
- To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
- Subject: RE: format attribut never initialised in CS_DATAFMT.
- Date: Mon, 28 Oct 2002 10:49:04 -0500
Yes, your application must initialize the format passed in to ct_bind(). If
you are binding to a datatype other than binary or character datatypes, you
should initialize the format to "CS_FMT_UNUSED."
Cheers,
--nick
-----Original Message-----
From: bounce-freetds-145195 AT franklin.oit.unc.edu
[mailto:bounce-freetds-145195 AT franklin.oit.unc.edu]
Sent: Friday, October 25, 2002 12:26 PM
To: TDS Development Group
Subject: [freetds] format attribut never initialised in CS_DATAFMT.
I have a problem with 'format' attribut of CS_DATAFMT. It has sometimes
strange value...
I kickly check the source code of freetds 0.6, and I was unable to find a
locatation where this attribut is set. The only line I found is in ct.c in
_ct_bind_data:
destfmt.format = curcol->column_bindfmt;
The problem is that curcool->column_bindfmt is set in ct_bind() using:
colinfo->column_bindfmt = datafmt->format;
And in this case, datafmt->format has never been initialised.
A quick hack is to set 'format' to 0 when I create a variable of CS_DATAFMT
type.
---
You are currently subscribed to freetds as: [Nicholas_Castellano AT acml.com]
To unsubscribe, forward this message to
$subst('Email.Unsub')
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 we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.
-
format attribut never initialised in CS_DATAFMT.,
david . sagnol, 10/25/2002
- <Possible follow-up(s)>
- RE: format attribut never initialised in CS_DATAFMT., Castellano, Nicholas, 10/28/2002
Archive powered by MHonArc 2.6.24.