Home » Database » DB » Bug #6897
Impossible to determine if autoCommit is on or off
Details
| Submitted | 2006-02-22 22:57 UTC |
|---|---|
| From | ieure at php dot net |
| Status | Duplicate |
| Package | DB |
| PHP Version | 5.1.2 |
| OS | Mac OS X |
| Roadmaps | (Not assigned) |
Comments
[2006-02-22 22:57 UTC] ieure at php dot net
Description:
------------
It's not possible to get the status of $autocommit; the
variable is declared private, and there is no method to access
it.
This makes it impossible to, for example, save & restore the
autocommit state.
I think that the following change should be made:
- $autocommit should be declared in DB_common, with an initial
value of true. Since some back-ends don't support
transactions, this is an accurate representation of their
behavior.
- DB_common::$autocommit should be declared public.
I'd be happy to submit a patch for this.