summaryrefslogtreecommitdiff
path: root/docs/database.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/database.txt')
-rw-r--r--docs/database.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/database.txt b/docs/database.txt
index 80044734..60e268c5 100644
--- a/docs/database.txt
+++ b/docs/database.txt
@@ -158,12 +158,9 @@ enclose small groups of queries in their own transaction. Use the
following syntax:
$dbw = wfGetDB( DB_MASTER );
-$dbw->immediateBegin();
+$dbw->begin();
/* Do queries */
-$dbw->immediateCommit();
-
-There are functions called begin() and commit() but they don't do what
-you would expect. Don't use them.
+$dbw->commit();
Use of locking reads (e.g. the FOR UPDATE clause) is not advised. They
are poorly implemented in InnoDB and will cause regular deadlock errors.