Skip to Content.
Sympa Menu

freetds - Re: [freetds] Problem with freebcp and fixed text output [NC]

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Problem with freebcp and fixed text output [NC]
  • Date: Thu, 6 Aug 2009 17:39:07 -0400

Cedric ROUVRAIS wrote:
>
> The issue one of my teams reported is that if there is a column in the
> file that does not get imported into the table, then it fails. The
> faulty procedure is _bcp_readfmt_colinfo which fails because TAB_COLNUM
> is not present in that case.
>
> Any ideas before I start implementing a fix?

I don't know what you mean by "not present", Cedric. It's an integer; it
has to be present.

It looks OK to me. The dbproc->hostfileinfo->host_columns array points to
a memory allocated with calloc(3) in bcp_columns(). By default, then,
ci->tab_colnum should be zero, meaning the field in the file is ignored.

HTH.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page