From:             
Operating system: Debian Linux
PHP version:      5.3.2
Package:          ODBC related
Bug Type:         Bug
Bug description:odbc_autocommit still broken

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 bug report at http://bugs.php.net/bug.php?id=52128&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52128&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52128&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52128&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52128&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52128&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52128&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52128&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52128&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52128&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52128&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52128&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52128&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52128&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52128&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52128&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52128&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52128&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52128&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52128&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52128&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52128&r=mysqlcfg

Reply via email to