@@ -45,6 +45,13 @@ You can run as many queries as you want between the ``transStart()``/``transComp
4545methods and they will all be committed or rolled back based on the success
4646or failure of any given query.
4747
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+
4855Strict Mode
4956===========
5057
@@ -58,6 +65,13 @@ Strict Mode can be disabled as follows:
5865
5966.. literalinclude :: transactions/002.php
6067
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+
6175Managing Errors
6276===============
6377
@@ -69,9 +83,12 @@ If the ``DBDebug`` is false, you can manage your own errors like this:
6983
7084.. literalinclude :: transactions/003.php
7185
72- .. note :: Since v4.3.0, ``DBDebug`` is true by default. In previous versions,
73- it was false in production environment, and different database drivers might
74- throw different exception classes or did not throw exceptions.
86+ .. note :: Since v4.3.0, ``DBDebug`` is true by default in all environments.
87+ When ``DBDebug `` is true, if an query error occurs, all the queries
88+ will be rolled backed, and an exception will be thrown.
89+ In previous versions, ``DBDebug `` was false in production environment,
90+ and different database drivers might throw different exception classes
91+ or did not throw exceptions.
7592
7693Disabling Transactions
7794======================
0 commit comments