@WanWizard two things:
1) respect. this ORM is super greasy and I’m enjoying the extra lesiure time I have in my life now
2) I think the ‘field_data’ function is being called by the default DB connection. You see at line 645 we have
// Get and store the table's field names and meta data
$fields = $this->db->field_data($this->table);
In my instance, I have two DB configs defined
$db['default']['dbdriver'] = 'mysql';
$db['mssql2008']['dbdriver'] = 'mssql';
My setup works until I get to a model that is based on a table from the MS SQL DB; I am setting said model like this:
var $db_params = 'mssql2008';
and I receive the error
Table ‘MyDatabase.tableName’ doesn’t exist
And, of course, you can see from the DESCRIBE and the `backticks` that it is indeed using the DB functions defined by the MySQL driver (my default driver).
Rather than mucking about and making a total mess of your library, I thought I’d see if you agree with my analysis and if so, is there a quick fix for this?