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: Error handling
- Date: Fri, 14 Jun 2002 11:03:11 -0400
> Brian,
> That's all I needed. I hadn't realised that tds_client_msg was callable
> from elsewhere than token.c I can see that other bits call it now.
>
> I'm just trying to make freebcp more production worthy - so when I hit a
> conversion error (processing a character file and finding nonsense in a
> date field for example), I can make sure an appropriate error message is
> out put...
>
> This is an example of "real" bcp hitting bad data...
[snip]
Ok, you can either force tds_convert_*() to take a TDSSOCKET or you can
trigger this behaviour in bcp.c, although I suspect you'll have already
lost the reason (overflow, illegal, etc...) at that point. Just be sure
to check for the NULL case before calling tds_client_msg() cause it can
happen.
> I'm just trying to reproduce this behaviour...
>
> Bill
Brian
-
Error handling,
Bill Thompson, 06/14/2002
- <Possible follow-up(s)>
- Re: Error handling, Brian Bruns, 06/14/2002
- Re: Error handling, Bill Thompson, 06/14/2002
- Re: Error handling, Brian Bruns, 06/14/2002
- Re: Error handling, Lowden, James K, 06/14/2002
- Re: Error handling, Bill Thompson, 06/14/2002
- Re: Error handling, Bill Thompson, 06/14/2002
- Re: Error handling, Lowden, James K, 06/14/2002
Archive powered by MHonArc 2.6.24.