summaryrefslogtreecommitdiff
path: root/ext/pdo/README
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-02-09 23:34:53 +0000
committerWez Furlong <wez@php.net>2005-02-09 23:34:53 +0000
commit3b857ea98722b8605c694147450d81ff7736f567 (patch)
treec7940b0f715b2ae068a3476322caf1e4eab4529d /ext/pdo/README
parentd2ae18d76ebcd0a2e653661646eaaf4e11e83382 (diff)
downloadphp-git-3b857ea98722b8605c694147450d81ff7736f567.tar.gz
rename ancient method
Diffstat (limited to 'ext/pdo/README')
-rwxr-xr-xext/pdo/README14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/pdo/README b/ext/pdo/README
index ea3ee74fb6..da806b0f30 100755
--- a/ext/pdo/README
+++ b/ext/pdo/README
@@ -29,10 +29,10 @@ slower when you are making a large number of udpates.
$dbh = new PDO("...", $user, $pass, array(PDO_ATTR_AUTOCOMMIT => false));
-When auto-commit is off, you must then use $dbh->beginWork() to initiate a
-transaction. When your work is done, you then call $dbh->commit() or
-$dbh->rollBack() to persist or abort your changes respectively.
-Not all databases support transactions.
+When auto-commit is off, you must then use $dbh->beginTransaction() to
+initiate a transaction. When your work is done, you then call $dbh->commit()
+or $dbh->rollBack() to persist or abort your changes respectively. Not all
+databases support transactions.
You can change the auto-commit mode at run-time:
@@ -42,9 +42,9 @@ Regardless of the error handling mode set on the database handle, if the
autocommit mode cannot be changed, an exception will be thrown.
Some drivers will allow you to temporarily disable autocommit if you call
-$dbh->beginWork(). When you commit() or rollBack() such a transaction, the
-handle will switch back to autocommit mode again. If the mode could not be
-changed, an exception will be raised, as noted above.
+$dbh->beginTransaction(). When you commit() or rollBack() such a transaction,
+the handle will switch back to autocommit mode again. If the mode could not
+be changed, an exception will be raised, as noted above.
When the database handle is closed or destroyed (or at request end for
persistent handles), the driver will implicitly rollBack(). It is your