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: brian AT bruns.com
  • To: freetds AT lists.ibiblio.org
  • Cc: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] patch: unixODBC 2.2.6 and SQLEndTran
  • Date: Sat, 06 Mar 2004 05:24:35 -0800 (PST)

It's also the reason we've always had _SQLExec, _SQLAllocENV,
_SQLFreeConnect and all the others. It's a long standing problem.

On Sat, 06 Mar 2004 12:13:47 +0100, Frediano Ziglio wrote:

>
> 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 mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds




Archive powered by MHonArc 2.6.24.

Top of Page