Skip to Content.
Sympa Menu

freetds - Re: Error handling

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • 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




Archive powered by MHonArc 2.6.24.

Top of Page