Re: Problem with freebcp and fixed text output [NC]
"James K. Lowden" <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
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