[eluser]Jonathon Hill[/eluser]
There is a critical bug in /database/drivers/odbc/odbc_driver.php, causing this error when we try to run a query using $this->db->query($sql):
Code:
Fatal error: Call to a member function num_rows() on a non-object in [BASEPATH]/database/drivers/odbc/odbc_driver.php on line 287
This bug is present in at least CI 1.6.1 and 1.6.3. Here's the easy fix:
Code:
function CI_DB_odbc_driver($params)
{
parent::CI_DB($params);
$this->_random_keyword = ' RND('.time().')'; // database specific random keyword
}