diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-12 17:17:41 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-12 17:17:41 +0200 |
commit | d36ade01b57ac39c328d9e0278b28b04fbef895e (patch) | |
tree | 2d88a4f975a89e0588b6c8f34428cdd497b3d2c5 /system/database/DB_driver.php | |
parent | 500fa6c3a934ac9d9f0a5c1ded5c00ad1709187f (diff) |
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/
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r-- | system/database/DB_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 35bdc29b6..b055d6dc3 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -1083,7 +1083,7 @@ class CI_DB_driver { 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;
}
|