Edit report at http://bugs.php.net/bug.php?id=52128&edit=1

 ID:               52128
 Updated by:       fel...@php.net
 Reported by:      dirkydirk at gmx dot net
 Summary:          odbc_autocommit still broken
-Status:           Open
+Status:           Bogus
 Type:             Bug
 Package:          ODBC related
 Operating System: Debian Linux
 PHP Version:      5.3.2

 New Comment:

The fix was in the PHP 5.3.3 RC1.


Previous Comments:
------------------------------------------------------------------------
[2010-06-20 18:21:59] dirkydirk at gmx dot net

Description:
------------
As reported in bug #49429 [2009-11-24 10:45 UTC] kristoff dot picard at
ingres dot com, odbc_autocommit($conn, false) still calls
SQLGetConnectOption instead of Set. Transactions are unusable.



Also, is the value correct?



PHP 5.3.2-1 with Suhosin-Patch (cli) (built: Mar 14 2010 00:09:57)
(Debian sid package)

Test script:
---------------
Snippet from ODBC trace:



odbc_autocommit($conn, false)

------------------------------

[ODBC][1127][1277050497.141639][SQLGetConnectOption.c][222]

                Entry:            

                        Connection = 0x2c5c6d0            

                        Option = SQL_ATTR_AUTOCOMMIT            

                        Value = 0x7fff8566234c

[ODBC][1127][1277050497.141681][SQLGetConnectOption.c][502]

                Exit:[SQL_SUCCESS]



-----------------------------

odbc_autocommit($conn, true)

-----------------------------

[ODBC][1127][1277050497.152906][SQLSetConnectOption.c][262]

                Entry:            

                        Connection = 0x2c5c6d0            

                        Option = SQL_ATTR_AUTOCOMMIT            

                        Value = 1

[ODBC][1127][1277050497.153191][SQLSetConnectOption.c][525]

                Exit:[SQL_SUCCESS]









------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52128&edit=1

Reply via email to