Skip to content

Commit f06cceb

Browse files
committed
docs: update description
1 parent 672e154 commit f06cceb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

user_guide_src/source/database/transactions.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,16 @@ Strict Mode can be disabled as follows:
6161
Managing Errors
6262
===============
6363

64-
If you have error reporting enabled in your Config/Database.php file
65-
you'll see a standard error message if the commit was unsuccessful. If
66-
debugging is turned off, you can manage your own errors like this:
64+
If you have ``DBDebug`` true in your **app/Config/Database.php** file
65+
you'll see an exception thrown if the commit was unsuccessful. If
66+
``DBDebug`` is false, you can manage your own errors like this:
6767

6868
.. literalinclude:: transactions/003.php
6969

70+
.. note:: Since v4.3.0, ``DBDebug`` is true by default. In previous versions,
71+
it was false in production environment, and different database drivers might
72+
throw different exception classes or did not throw exceptions.
73+
7074
Disabling Transactions
7175
======================
7276

0 commit comments

Comments
 (0)