php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60213 MySQL supports inTransaction
Submitted: 2011-11-03 17:06 UTC Modified: 2011-12-03 23:25 UTC
From: mcnaney at gmail dot com Assigned: frozenfire (profile)
Status: Closed Package: PDO related
PHP Version: 5.3.8 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mcnaney at gmail dot com
New email:
PHP Version: OS:

 

 [2011-11-03 17:06 UTC] mcnaney at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/pdo.intransaction
---

The note for this page claims it is only supported in PostgreSQL. I am getting 
positive results in MySQL.

This issue was mentioned with MySQL 5 in a previous bug report in 2007.

Cheers

Test script:
---------------
var_dump($pdo->inTransaction());
$pdo->beginTransaction();
var_dump($pdo->inTransaction());

For the above I get:

int 0
int 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-03 23:25 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=320330
Log: Removed Postgre-only note. Clarified that it's available for drivers that support transactions. Closes bug #60213.
 [2011-12-03 23:25 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2011-12-03 23:25 UTC] frozenfire@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC