Skip to Content.
Sympa Menu

freetds - Re: [freetds] SQLCancel() and error diagnostic: Expecting HY008SQLSTATE

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] SQLCancel() and error diagnostic: Expecting HY008SQLSTATE
  • Date: Mon, 14 Jan 2008 13:51:35 +0100

> >
> > 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

Attachment: vedi.diff.gz
Description: vedi.diff.gz




Archive powered by MHonArc 2.6.24.

Top of Page