src/tds/bulk.c is here

"Frediano Ziglio" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Well... I know, I should finish wide characters binding and data in
ODBC but you know... it's open source !!
Today I found some time to start putting some bcp stuff into libTDS.
I have to say... today I just put some very similar (copied&pasted)
stuff common to ctlib/dblib into libTDS, currently a single function
but result is quite fine:

$ diffstat vedi.diff ; wc -l src/tds/bulk.c
 include/ctlib.h     |   11 -
 include/dblib.h     |   15 -
 include/tds.h       |   19 ++
 src/ctlib/blk.c     |  396 ++++++++++++----------------------------------------
 src/dblib/bcp.c     |  309 ++++------------------------------------
 src/tds/Makefile.am |    2
 6 files changed, 152 insertions(+), 600 deletions(-)
289 src/tds/bulk.c

$ echo $[ 152 - 600 + 289 ]
-159

so, I removed 159 lines (not counting that having a new file I have
also many new include and declaration lines).

As a sideeffect I merged I bug I fixed time ago in dblib into ctlib
(too big column metadata resulted in a probable memory error) and now
ctlib support column names that need quoting.

As usual comments are welcome.

freddy77
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.