freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
- Subject: bcp.c::
- Date: Mon, 17 Jun 2002 17:39:54 -0400
Bill,
Isn't the code below broken for TDS 7.0? The query becomes "insert bulk jkl
()" because colclause isn't populated unless it's TDS 8.0. I get an error
about invalid syntax.
Do you happen to know the right syntax?
Thanks. I'll keep plugging.
--jkl
[-snip-]
static RETCODE _bcp_start_copy_in(DBPROCESS *dbproc)
{
[...]
if (IS_TDS70(tds) || IS_TDS80(tds))
{
firstcol = 1;
strcpy(colclause,"");
for ( i = 0; i < dbproc->bcp_colcount; i++ )
{
bcpcol = dbproc->bcp_columns[i];
if (IS_TDS80(tds))
{
_bcp_build_bulk_insert_stmt(colclause, bcpcol, firstcol);
firstcol = 0;
}
}
sprintf(query,"insert bulk %s (%s)",dbproc->bcp_tablename, colclause
);
}
else
[end snip]
- bcp.c::, Lowden, James K, 06/17/2002
Archive powered by MHonArc 2.6.24.