php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35417 PDO_MySQL docs unclear about transaction safety
Submitted: 2005-11-27 01:56 UTC Modified: 2005-11-27 07:51 UTC
From: jbarros at mail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2005-11-27 01:56 UTC] jbarros at mail dot com
Description:
------------
http://www.php.net/manual/en/ref.pdo-mysql.php claims that MySQL tables are not transaction-safe by default; however, whether a table is transaction-safe depends on the storage engine used.  The distinction is unclear and may mislead readers.

Current Wording
===============
Beware: MySQL tables do not support transactions by default. When writing transactional database code, MySQL will pretend that a transaction was initiated successfully, even when no transactional support is present. In addition, any DDL queries issued will implicitly commit any pending transactions.

Improved Wording
================
Beware: Some MySQL storage engines do not support transactions. When writing transactional database code on tables that don't support them, MySQL will pretend that a transaction was initiated successfully. In addition, any DDL queries issued will implicitly commit any pending transactions.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-27 07:51 UTC] dbs@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 20:01:32 2025 UTC