summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-23 15:08:41 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-23 15:08:41 +0100
commit2cae193647045a83014972d2aae908e7ea0ac8f3 (patch)
tree13b9a4d8f01c87dcc8d8dfb65342a41bc1f86a08 /system/database/DB_driver.php
parent549849b7aaba26547500505f8001a5126d425922 (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.php17
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