PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #6897

Impossible to determine if autoCommit is on or off

Details

Submitted2006-02-22 22:57 UTC
Fromieure at php dot net
StatusDuplicate
PackageDB
PHP Version5.1.2
OSMac 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.