You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.3.0.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ Exceptions when Database Errors Occur
27
27
28
28
- The exceptions thrown by the database connection classes have been changed to ``CodeIgniter\Database\Exceptions\DatabaseException``. Previously, different database drivers threw different exception classes, but these have been unified into ``DatabaseException``.
29
29
- The exceptions thrown by the ``execute()`` method of Prepared Queries have been changed to ``DatabaseException``. Previously, different database drivers might throw different exception classes or did not throw exceptions, but these have been unified into ``DatabaseException``.
30
+
- During transactions, exceptions are not thrown by default even if ``DBDebug`` is true.
30
31
- ``DBDebug`` and ``CI_DEBUG`` Changes
31
32
32
33
- To be consistent in behavior regardless of environments, ``Config\Database::$default['DBDebug']``
@@ -38,11 +39,10 @@ Exceptions when Database Errors Occur
38
39
- The default value of ``BaseConnection::$DBDebug`` has been changed to ``true``.
39
40
- With these changes, ``DBDebug`` **now means whether or not to throw an exception when an error occurs**.
40
41
Although unrelated to debugging, the name has not been changed.
41
-
- When running transactions with ``DBDebug`` is ``true``, if a query error occurs, all the queries
42
-
will be rolled backed, and an exception will be thrown. :ref:`transactions-managing-errors` or
43
-
:ref:`transactions-manual-transactions` won't work. This is no different from previous versions,
44
-
but changing the ``DBDebug`` setting from the previous default value to ``true`` will change the
45
-
behavior in the production environment.
42
+
- When running transactions with ``DBDebug`` is ``true``, even if a query error occurs, exceptions
43
+
are not thrown by default. Previously, if a query error occurs, all the queries
44
+
will be rolled backed, and an exception will be thrown, so :ref:`transactions-managing-errors` or
0 commit comments