freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Brian Bruns" <camber AT ais.org>
- To: freetds AT franklin.oit.unc.edu
- Subject: Re: dbconvert bugs
- Date: Tue, 9 Jul 2002 11:38:39 -0400
> Bug 2: I don't see what tds is doing for us. Perhaps the computer is
> curious?
I assume you are referring to why the conversion stuff is in libtds?
Basically we had no other place to put it since conversion is shared by
all libraries. I'm starting to consider that conversion, iconv, thread
safety, and some other miscellenia should be moved somewhere else like a
'common' directory. It's not protocol related but it is shared among the
API's.
> Bug 3: Because tds_convert has no dbproc, it can't call the proc's error
> handler. There are many many places it should call the error handler:
> buffer overflows, null destination pointers, inconvertibility. This touches
> on Frediano's #578095, and is too big a problem, unfortunately, to deal with
> in 0.60.
Not true. You can call tds_client_msg(). The tds layer calls the API's
handler (which unlike the clients handlers are always installed), the
API's handler is then responsible for deciding which application handler
gets called, typically by casting the tds->parent back to a API specific
structure (ala DBPROCESS).
So no, TDS can not call a application handler but he can call the
installed API message handler which can.
Frediano's patch merely deals with the fact that having global API handler
function pointers means that we can not have dblib and ctlib linked to the
same binary and expect messages to work, or worse we'll cast CS_CONNECTION
to a DBPROC and segfault the whole thing.
> --jkl
Brian
-
dbconvert bugs,
Lowden, James K, 07/09/2002
- <Possible follow-up(s)>
- Re: dbconvert bugs, Bill Thompson, 07/09/2002
- Re: dbconvert bugs, Brian Bruns, 07/09/2002
- Re: dbconvert bugs, Bill Thompson, 07/09/2002
- Re: dbconvert bugs, Michael Peppler, 07/09/2002
- Re: dbconvert bugs, Lowden, James K, 07/09/2002
- Re: dbconvert bugs, Brian Bruns, 07/09/2002
- Re: dbconvert bugs, Bill Thompson, 07/12/2002
- Re: dbconvert bugs, Bill Thompson, 07/12/2002
- Re: dbconvert bugs, Thompson, Bill D (London), 07/12/2002
- Re: dbconvert bugs, Brian Bruns, 07/12/2002
Archive powered by MHonArc 2.6.24.