[freetds] patch: unixODBC 2.2.6 and SQLEndTran

Frediano Ziglio freddyz77 at tin.it
Sat Mar 6 06:13:47 EST 2004


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





More information about the FreeTDS mailing list