summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-28 14:28:19 +0200
committerAndrey Andreev <narf@bofh.bg>2012-03-28 14:28:19 +0200
commitbee6644ce280d8e72cc2db23c86d5f5f6973acf3 (patch)
treebdc8822b4ca7ae385a488789f0dfe8c79769435e /system/database/DB_driver.php
parent8e2478e7310b5cfff88b64ff5d84b71f1c124b58 (diff)
Add a dummy db_select() method to CI_DB_driver and remove it from drivers that don't have such functionality
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index d3359e13e..594fcced9 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -192,10 +192,24 @@ abstract class CI_DB_driver {
// --------------------------------------------------------------------
/**
+ * Select database
+ *
+ * This is just a dummy method to allow drivers without such
+ * functionality to not declare it, while others will override it.
+ *
+ * @return bool
+ */
+ public function db_select()
+ {
+ return TRUE;
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Set client character set
*
* @param string
- * @param string
* @return bool
*/
public function db_set_charset($charset)