passed db object by reference to DB Cache class, and changed the cache class to use that db object instead of $CI->db, to support returned db objects and multiple db connections
http://codeigniter.com/bug_tracker/bug/4223/
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 35bdc29..b055d6d 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1083,7 +1083,7 @@
return $this->cache_off();
}
- $this->CACHE = new CI_DB_Cache;
+ $this->CACHE = new CI_DB_Cache($this); // pass db object to support multiple db connections and returned db objects
return TRUE;
}