[eluser]nebulom[/eluser]
I'm trying to get back to Oracle. CodeIgniter is version 1.7.1. I tried this on my config.
Code:
$active_group = "oracle";
$active_record = TRUE;
$db['oracle']['hostname'] = "//host:1521/test";
$db['oracle']['username'] = 'name';
$db['oracle']['password'] = "password";
$db['oracle']['database'] = '';
$db['oracle']['dbdriver'] = "oci8";
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "name";
$db['default']['password'] = "password";
$db['default']['database'] = "db_test";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
And I have the model as
Code:
function getData() {
$query = $this->db->get('USERS');
return $query->result();
}
It works fine when I change the active_group to default but gives me error when set to oracle.
Code:
Fatal error: Call to a member function row_array() on a non-object in D:\tmxpage\Apache2\htdocs\qc_online_view\branches\with-igniter\system\application\models\stringtag_model.php on line 15
I know I'm missing something. I just can't figure out where. Appreciate anyone's help. Thanks in advance.