[freetds] SQLCancel() and error diagnostic: Expecting HY008SQLSTATE
ZIGLIO, Frediano, VF-IT
Frediano.Ziglio at vodafone.com
Mon Jan 14 07:51:35 EST 2008
> >
> > Frediano Ziglio wrote:
> > > Also it
> > > seems that in some different systems signal are handled in
> > a slightly
> > > different way. That is
> > > - query is sent, state is set to TDS_READING
> > > - select/poll stops
> > > - signal is caught, SQLCancel is called
> >
> > Who catches the signal? I hope it's the application.
> >
> > I don't know the proper treatment of signals in an ODBC
> > application, but
> > I'm pretty sure SQLCancel shouldn't be called in a signal
> > handler. The
> > handler doesn't have enough information to know whether
> > that's the right
> > thing to do.
> >
>
...
This patch seems to solve all cases.
freddy77
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vedi.diff.gz
Type: application/x-gzip
Size: 1473 bytes
Desc: vedi.diff.gz
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20080114/7f85010f/attachment-0001.bin
More information about the FreeTDS
mailing list