@@ -45,6 +45,13 @@ You can run as many queries as you want between the start/complete
45
45
functions and they will all be committed or rolled back based on the success
46
46
or failure of any given query.
47
47
48
+ .. note :: Since v4.3.0, ``DBDebug`` is true by default in all environments.
49
+ When ``DBDebug `` is true, if an query error occurs, all the queries
50
+ will be rolled backed, and an exception will be thrown.
51
+ In previous versions, ``DBDebug `` was false in production environment,
52
+ and different database drivers might throw different exception classes
53
+ or did not throw exceptions.
54
+
48
55
Strict Mode
49
56
===========
50
57
@@ -58,6 +65,13 @@ Strict Mode can be disabled as follows:
58
65
59
66
.. literalinclude :: transactions/002.php
60
67
68
+ .. note :: Since v4.3.0, ``DBDebug`` is true by default in all environments.
69
+ When ``DBDebug `` is true, if an query error occurs, all the queries
70
+ will be rolled backed, and an exception will be thrown.
71
+ In previous versions, ``DBDebug `` was false in production environment,
72
+ and different database drivers might throw different exception classes
73
+ or did not throw exceptions.
74
+
61
75
Managing Errors
62
76
===============
63
77
@@ -67,9 +81,12 @@ you'll see an exception thrown if the commit was unsuccessful. If
67
81
68
82
.. literalinclude :: transactions/003.php
69
83
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.
84
+ .. note :: Since v4.3.0, ``DBDebug`` is true by default in all environments.
85
+ When ``DBDebug `` is true, if an query error occurs, all the queries
86
+ will be rolled backed, and an exception will be thrown.
87
+ In previous versions, ``DBDebug `` was false in production environment,
88
+ and different database drivers might throw different exception classes
89
+ or did not throw exceptions.
73
90
74
91
Disabling Transactions
75
92
======================
0 commit comments