summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-26 12:58:12 +0200
committerAndrey Andreev <narf@bofh.bg>2012-03-26 12:58:12 +0200
commitbb2e518754e703be095df9d8fd7cb3d82a5d3bbe (patch)
treeab2ed2e5e9b9d4ef66fb30cb221c43a8ef693cdc /system/database/DB_driver.php
parent0336dc228c84695ec75fc8dccedac354d1556de9 (diff)
parente684bdac2d6282e3b9a5c57e1006d5ed1664f647 (diff)
Merge upstream branch
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php25
1 files changed, 20 insertions, 5 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index bcff43392..9f1a0b895 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;
@@ -171,6 +171,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
@@ -1357,11 +1374,9 @@ class CI_DB_driver {
*
* @return void
*/
- protected function _reset_select()
- {
- }
+ abstract protected function _reset_select();
}
/* End of file DB_driver.php */
-/* Location: ./system/database/DB_driver.php */
+/* Location: ./system/database/DB_driver.php */ \ No newline at end of file