We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ec771b + ac0e0bf commit c424b3eCopy full SHA for c424b3e
system/database/DB_driver.php
@@ -436,7 +436,7 @@ public function initialize()
436
$this->display_error('db_unable_to_connect');
437
}
438
439
- return FALSE;
+ throw new RuntimeException('Database connection failure.');
440
441
442
user_guide_src/source/changelog.rst
@@ -11,6 +11,10 @@ Release Date: Not Released
11
12
- Added UNIX socket connection support to :doc:`Session Library <libraries/sessions>` 'redis' driver.
13
14
+- Database
15
+
16
+ - CI_DB_driver::initialize() throws a "Database connection failure." RuntimeException if couldn't connect to the database.
17
18
19
Version 3.0.4
20
=============
0 commit comments