|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58124 Autocommit state machine seems to be borked with multiple links
Submitted: 2008-03-27 07:40 UTC Modified: 2017-10-24 08:41 UTC
From: alexander dot thiem at ingres dot com Assigned:
Status: Suspended Package: ingres (PECL)
PHP Version: 5.2.4 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: alexander dot thiem at ingres dot com
New email:
PHP Version: OS:


 [2008-03-27 07:40 UTC] alexander dot thiem at ingres dot com
When using multiple connections switching on and off autocommit seems to confuse the drivers internal state machine. Autocommit stays off even when it shouldn't.
The code pasted below SHOULD deadlock with the two concurrent inserts but it doesn't.
If you leave out all the lines above it will hang as expected.

Reproduce code:
$link1 = ingres2_connect( ... );
$link2 = ingres2_connect( ... );


$res1 = ingres2_query($link1, "select * from table");
$res2 = ingres2_query($link2, "select * from table");


$res1 = ingres2_query($link1, "insert into table values ( ... )");
$res2 = ingres2_query($link2, "insert into table values ( ... )");


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 08:41 UTC]
-Status: Open +Status: Suspended
 [2017-10-24 08:41 UTC]
The ingres package has not had any activity for 4 years, so its safe to say that its no longer in active development, if activity picks backup then the maintainer can re-open this report
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 13 13:01:30 2024 UTC