Skip to Content.
Sympa Menu

freetds - Re: [freetds] ODBC driver (odbc.c)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] ODBC driver (odbc.c)
  • Date: Fri, 17 Oct 2003 20:59:05 -0400

On Fri, 17 Oct 2003, Peter Giorgilli <pgiorgilli AT theage.fairfax.com.au>
wrote:
>
> I recently installed FreeTDS (0.61.2) in combo with unixODBC (2.2.6),
> Perl DBI and Perl DBD::ODBC for the same reason that many of you may
> have. Namely, to access an Microsoft SQL database from Linux; in this
> case, from a Perl application.
...
>Basically, what was happening was that the "_SQLExecute" function was not
>trapping the "TDS_FAIL" return code (generated as a result
> of the connection dying) and returning "SQL_SUCCESS" by default. The
> "SQLMoreResults" was in turn being called, when strictly it shouldn't
> have been, the end result being that the process would end up in a tight
> loop.
...
> After all of that, the patch below seems to have done the trick.

Thanks for the work and the patch, Peter. :-)

I have cleaned up the effects of email mangulation:

http://www.schemamania.org/projects/freetds/patches/PeterGiorgilli.diff

Would someone who's worked on the ODBC driver tell me if it should go in?
I know Frediano's been having technical difficulties lately, and I'm happy
to apply it, but I'm not in a position to say whether or not I should.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page