summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-26 20:51:00 +0200
committerAndrey Andreev <narf@bofh.bg>2012-03-26 20:51:00 +0200
commit925d37391789405f53da73979305dead6a053099 (patch)
tree0ed90207fe66bb5491e8925d20d48c211a897cf8 /system/database/DB_driver.php
parente6f7d610b189e243ad48dcc3900a5c53cab2498d (diff)
parent84c3b27fface58ecfcd0acf7172d3ee2043b3673 (diff)
Merge branch 'develop' of github.com:EllisLab/CodeIgniter into develop-helpers-acc
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