Part of the EllisLab Network

Bug Report

Error in ODBC Driver

Date: 05/18/2008 Severity: Major
Status: Deprecated Reporter: Moiz
Version: 1.6.2
Keywords: Libraries, Database Class

Description

A PHP Error is thrown while using scafolding trying to connect to a MS SQL database via a ODBC Connection

Code Sample

config/database.php


$db
['default']['hostname'] = "208.115.103.4";
$db['default']['username'] = "";
$db['default']['password'] = "";
$db['default']['database'] = "ttldb";
$db['default']['dbdriver'] = "odbc";
$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";

Expected Result

Actual Result

Fatal error: Call to a member function num_rows() on a non-object in C:\xampp\htdocs\ttl_test\system\database\drivers\odbc\odbc_driver.php on line 286

Comment on Bug Report

Page 1 of 1 pages
Posted by: Rick Ellis on 2 October 2008 4:46pm
Rick Ellis's avatar

sounds like a DB connection was not able to be established, which would result in there not being a query object.  In any event, Scaffolding was deprecated as of 1.6, back in January.

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?