]> granicus.if.org Git - php/commitdiff
rename ancient method
authorWez Furlong <wez@php.net>
Wed, 9 Feb 2005 23:34:53 +0000 (23:34 +0000)
committerWez Furlong <wez@php.net>
Wed, 9 Feb 2005 23:34:53 +0000 (23:34 +0000)
ext/pdo/README

index ea3ee74fb68672aeb98eb043592c19d1d05d31ad..da806b0f30fc5cb85e2984266a4042e0ddc3615e 100755 (executable)
@@ -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