Bug #52128 [Bgs]: odbc_autocommit still broken

From: Date: Sun, 20 Jun 2010 22:24:21 +0000
Subject: Bug #52128 [Bgs]: odbc_autocommit still broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151688@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52128&edit=1

 ID:               52128
 Updated by:       felipe@php.net
 Reported by:      dirkydirk at gmx dot net
 Summary:          odbc_autocommit still broken
 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-21 00:24:10] felipe@php.net

The fix was in the PHP 5.3.3 RC1.

------------------------------------------------------------------------
[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


Thread (3 messages)

« previous php.bugs (#151688) next »