freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] patch: unixODBC 2.2.6 and SQLEndTran
- 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
-
[freetds] patch: unixODBC 2.2.6 and SQLEndTran,
Lowden, James K, 03/05/2004
- Re: [freetds] patch: unixODBC 2.2.6 and SQLEndTran, Frediano Ziglio, 03/06/2004
- <Possible follow-up(s)>
- Re: [freetds] patch: unixODBC 2.2.6 and SQLEndTran, brian, 03/06/2004
Archive powered by MHonArc 2.6.24.