Skip to Content.
Sympa Menu

freetds - RE: [freetds] Field not used in BCP

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <bill_d_thompson AT ml.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Field not used in BCP
  • Date: Fri, 28 Jan 2005 16:45:17 -0000

Freddy,

Not sure if you've found a bug or not.
The circumstances where this *might* be needed are obscure to say the
least.
If it is to be used, it should be stored in bcp_bind(), from the
prefixlen parameter to that function, but it doesn't appear to be.

It would only be needed as follows - taken from the bcp_bind() manual
page in sybase:

"prefixlen - The length, in bytes, of any
length prefix this column may have.
For example, strings in some non-C programming
languages are made up of a one-byte length prefix,
followed by the string data itself.
If the data does not have a length prefix,
set prefixlen to 0."

don't remove the code just yet, if you don't mind.

Bill

-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of ZIGLIO,
Frediano, VF-IT
Sent: 28 January 2005 15:20
To: FreeTDS Development Group
Subject: [freetds] Field not used in BCP


$ grep -r bcp_prefix_len * | grep -v 'Il file binario'
doc/doxy.log:/home/freddy/cpp/freetds/freetds64/include/tds.h:872:
Warning: Member bcp_prefix_len of class tds_column is not documented.
include/tds.h: TDS_INT bcp_prefix_len;
src/dblib/bcp.c: if (bindcol->bcp_prefix_len > 0) {
src/dblib/bcp.c: switch (bindcol->bcp_prefix_len) {

As you can note nodoy initialize or assign this field...

freddy77
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain or
redistribute it. Click here for important additional terms relating to this
e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------





Archive powered by MHonArc 2.6.24.

Top of Page