diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-23 15:08:41 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-23 15:08:41 +0100 |
commit | 2cae193647045a83014972d2aae908e7ea0ac8f3 (patch) | |
tree | 13b9a4d8f01c87dcc8d8dfb65342a41bc1f86a08 /system/database/DB_driver.php | |
parent | 549849b7aaba26547500505f8001a5126d425922 (diff) |
Add dummy method reconnect() method to CI_DB_driver and remove it from drivers that don't support it
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r-- | system/database/DB_driver.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 42b1b35aa..9f1a0b895 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -171,6 +171,23 @@ abstract class CI_DB_driver { // -------------------------------------------------------------------- /** + * Reconnect + * + * Keep / reestablish the db connection if no queries have been + * sent for a length of time exceeding the server's idle timeout. + * + * This is just a dummy method to allow drivers without such + * functionality to not declare it, while others will override it. + * + * @return void + */ + public function reconnect() + { + } + + // -------------------------------------------------------------------- + + /** * Set client character set * * @param string |