diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-05 14:59:16 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-05 14:59:16 +0100 |
commit | 57bdeb61bf199d1ae3ceaede4e9a9af8290ce715 (patch) | |
tree | 9c6ff3ebd8c843296ed7af84c6952c59ee74a645 /system/database/DB_result.php | |
parent | 8af76666474c42b45518c08bec16b4f8d700dd3c (diff) |
Removed oci8-specific stuff from DB_driver.php and added a constructor to DB_result to handle initialization
Diffstat (limited to 'system/database/DB_result.php')
-rw-r--r-- | system/database/DB_result.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/database/DB_result.php b/system/database/DB_result.php index 730443222..61aa56121 100644 --- a/system/database/DB_result.php +++ b/system/database/DB_result.php @@ -47,6 +47,12 @@ class CI_DB_result { public $num_rows = 0; public $row_data = NULL; + public function __construct(&$driver_object) + { + $this->conn_id = $driver_object->conn_id; + $this->result_id = $driver_object->result_id; + } + /** * Query result. Acts as a wrapper function for the following functions. * |