freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Problem with freebcp and fixed text output [NC]
- 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
-
[freetds] Problem with freebcp and fixed text output,
Modesto Sevilla, 08/04/2009
-
Re: [freetds] Problem with freebcp and fixed text output,
James K. Lowden, 08/05/2009
- Re: [freetds] Problem with freebcp and fixed text output [NC], Cedric ROUVRAIS, 08/06/2009
-
Re: [freetds] Problem with freebcp and fixed text output [NC],
Cedric ROUVRAIS, 08/06/2009
-
Re: [freetds] Problem with freebcp and fixed text output [NC],
James K. Lowden, 08/06/2009
-
Re: [freetds] Problem with freebcp and fixed text output [NC],
Cedric ROUVRAIS, 08/06/2009
-
Re: [freetds] Problem with freebcp and fixed text output [NC],
Konrad J Hambrick, 08/06/2009
- Re: [freetds] Problem with freebcp and fixed text output [NC], Konrad J Hambrick, 08/06/2009
-
Re: [freetds] Problem with freebcp and fixed text output [NC],
Cedric ROUVRAIS, 08/06/2009
- Re: [freetds] Problem with freebcp and fixed text output [NC], Konrad J Hambrick, 08/06/2009
-
Re: [freetds] Problem with freebcp and fixed text output [NC],
Konrad J Hambrick, 08/06/2009
-
Re: [freetds] Problem with freebcp and fixed text output [NC],
Cedric ROUVRAIS, 08/06/2009
-
Re: [freetds] Problem with freebcp and fixed text output [NC],
James K. Lowden, 08/06/2009
- <Possible follow-up(s)>
- Re: [freetds] Problem with freebcp and fixed text output, rodrigo lopez, 08/05/2009
-
Re: [freetds] Problem with freebcp and fixed text output,
James K. Lowden, 08/05/2009
Archive powered by MHonArc 2.6.24.