Skip to Content.
Sympa Menu

freetds - Re: [freetds] patch: unixODBC 2.2.6 and SQLEndTran

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] patch: unixODBC 2.2.6 and SQLEndTran
  • Date: Sat, 06 Mar 2004 12:13:47 +0100

Il ven, 2004-03-05 alle 21:00, Lowden, James K ha scritto:
> Using FreeTDS 0.62.1 and unixODBC 2.2.6, calls to SQLEndTran() may fail
> rather mysteriously, saying the transaction can't be committed.
>
> unixODBC and FreeTDS both implement SQLTransact(), which is called from
> SQLEndTran(). On some platforms, it is the unixODBC one that is called,
> and this causes the error. This appears to be a function of how the
> libraries are linked, which is why the ODBC unit tests pass on some
> platforms and not others.
>
> The attached patch fixes the problem. It moves the SQLTransact() logic to
> a local static function that is called by both SQLTransact()and
> SQLEndTran().
>
> My thanks to Nick Gorham of Easysoft for his help in solving this problem.
>

Applied!
This is one of the reason I added -Wl,-Bsymbolic to linker...

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page