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
The only issue is the name of the property DBDebug is not good.
--- a/system/Database/BaseConnection.php+++ b/system/Database/BaseConnection.php@@ -124,7 +124,7 @@ abstract class BaseConnection implements ConnectionInterface
/**
* Debug flag
*
- * Whether to display error messages.+ * Whether to throw Exception or not when an error occurs.
*
* @var bool
*/
Oh nice! That's a lot easier than I expected. Yes I will switch all my projects to true, much better to have the actual database error then some strange code errors farther down the stack.
I agree the name is unfortunate but probably not worth fiddling with if the functionality is all there.
Now in the
development
environment CI throws Exceptions when DB errors occur,but in the
production
environment, CI returns false.So most devs don't check query return values, and DB errors in the production environment
will be hidden by the configuration.
See #6115 (comment)
Ref
The text was updated successfully, but these errors were encountered: