diff options
author | admin <devnull@localhost> | 2006-10-12 01:48:41 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-12 01:48:41 +0200 |
commit | 606f99c043272f96f21911d89c21cd36c2ef59e4 (patch) | |
tree | 4f73881300630f26dbc2940a11177aceabc82878 /system/database/DB_driver.php | |
parent | 4c1ab6c826c3f5c3158a38443c2d3c30203f0f5a (diff) |
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r-- | system/database/DB_driver.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 22f91ed4c..a4131fd73 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -172,6 +172,7 @@ class CI_DB_driver { $CI =& get_instance(); $CI->dbutil = new $class(); + $CI->_ci_assign_to_models(); } // -------------------------------------------------------------------- @@ -629,7 +630,7 @@ class CI_DB_driver { */ function primary($table = '') { - $fields = $this->field_names($table); + $fields = $this->list_fields($table); if ( ! is_array($fields)) { |