diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-26 12:07:55 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-26 12:07:55 +0200 |
commit | ed1aa21dcd5312b2884f140be8c0d2ee94379423 (patch) | |
tree | 9fef4a1e0cb43494e75585fbfa9b15010a801b96 /system/database/DB_driver.php | |
parent | 35bbb1ab4f7ee09d75fb407c6d9d9637b4404698 (diff) | |
parent | c2697db0f2721cc9fefb58b85bf55e6bdb91db9b (diff) |
Merge upstream branch
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r-- | system/database/DB_driver.php | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 1fce76cb5..f0b8e7789 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -38,7 +38,7 @@ * @author EllisLab Dev Team * @link http://codeigniter.com/user_guide/database/ */ -class CI_DB_driver { +abstract class CI_DB_driver { public $dsn; public $username; @@ -175,6 +175,23 @@ 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 @@ -1320,9 +1337,7 @@ class CI_DB_driver { * * @return void */ - protected function _reset_select() - { - } + abstract protected function _reset_select(); } |