summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-10-24 09:11:22 +0200
committerAndrey Andreev <narf@devilix.net>2016-10-24 09:11:22 +0200
commit777bb986d9e252dcc4dde3c76c03b0e0c7c1f8ef (patch)
tree231edccb5d11fe5dd4c1110ba76b01b1005c3504 /user_guide_src/source/database
parentd81b59ef02dab9072e44eec2dec519e5178e7759 (diff)
[ci skip] Update docs on trans_off()
Diffstat (limited to 'user_guide_src/source/database')
-rw-r--r--user_guide_src/source/database/transactions.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/user_guide_src/source/database/transactions.rst b/user_guide_src/source/database/transactions.rst
index 2e6d4b477..e25b8ed14 100644
--- a/user_guide_src/source/database/transactions.rst
+++ b/user_guide_src/source/database/transactions.rst
@@ -75,12 +75,11 @@ debugging is turned off, you can manage your own errors like this::
// generate an error... or use the log_message() function to log your error
}
-Enabling Transactions
-=====================
+Disabling Transactions
+======================
-Transactions are enabled automatically the moment you use
-$this->db->trans_start(). If you would like to disable transactions you
-can do so using $this->db->trans_off()::
+If you would like to disable transactions you can do so using
+``$this->db->trans_off()``::
$this->db->trans_off();
@@ -88,8 +87,9 @@ can do so using $this->db->trans_off()::
$this->db->query('AN SQL QUERY...');
$this->db->trans_complete();
-When transactions are disabled, your queries will be auto-commited, just
-as they are when running queries without transactions.
+When transactions are disabled, your queries will be auto-commited, just as
+they are when running queries without transactions, practically ignoring
+any calls to ``trans_start()``, ``trans_complete()``, etc.
Test Mode
=========