CodeIgniter Forums
Bug in ODBC-driver constructor - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Bug in ODBC-driver constructor (/showthread.php?tid=25694)

Pages: 1 2


Bug in ODBC-driver constructor - El Forum - 12-21-2009

[eluser]Unknown[/eluser]
Hi,

when using the ODBC in the latest CI-release I always get: "Fatal error: Call to undefined method CI_DB::CI_DB() in C:\www\system\database\drivers\odbc\odbc_driver.php on line 53".
Line 53 being
Code:
parent::CI_DB($params);
Apparently replacing this with
Code:
parent::CI_DB_driver($params);
solves the issue.

I'm merely a CI newbie so my question for you is: is this the correct fix? If so, you may of course implement it in the next release :-) Thanks!


Bug in ODBC-driver constructor - El Forum - 05-31-2010

[eluser]luke holder[/eluser]
I also had this error and this fixed it!!!! thanks heaps!


Bug in ODBC-driver constructor - El Forum - 12-04-2010

[eluser]CI_adis[/eluser]
Hi kbon,

I had the same error message and got a step further with your quick fix.
Why is this not fixed in the latest CI???

It is not user friendly for new people that are trying CI!

Thanks anyway.


Bug in ODBC-driver constructor - El Forum - 02-04-2011

[eluser]MVUG[/eluser]
Is this fixed in 2.0?


Bug in ODBC-driver constructor - El Forum - 02-04-2011

[eluser]CI_adis[/eluser]
Hi MVUG,

I haven't tested this yet. I have downloaded this, i will try to test this next week..


Bug in ODBC-driver constructor - El Forum - 02-10-2011

[eluser]MVUG[/eluser]
[quote author="CI_adis" date="1296835365"]Hi MVUG,

I haven't tested this yet. I have downloaded this, i will try to test this next week..[/quote]

Have you tested this already?


Bug in ODBC-driver constructor - El Forum - 02-10-2011

[eluser]Nacho[/eluser]
Hi kbon!
How to set up the database.php?
I mean, what values?

[quote author="kbon" date="1261431235"]Hi,

when using the ODBC in the latest CI-release I always get: "Fatal error: Call to undefined method CI_DB::CI_DB() in C:\www\system\database\drivers\odbc\odbc_driver.php on line 53".
Line 53 being
Code:
parent::CI_DB($params);
Apparently replacing this with
Code:
parent::CI_DB_driver($params);
solves the issue.

I'm merely a CI newbie so my question for you is: is this the correct fix? If so, you may of course implement it in the next release :-) Thanks![/quote]


Bug in ODBC-driver constructor - El Forum - 02-11-2011

[eluser]CI_adis[/eluser]
[quote author="MVUG" date="1297346745"][quote author="CI_adis" date="1296835365"]Hi MVUG,

I haven't tested this yet. I have downloaded this, i will try to test this next week..[/quote]

Have you tested this already?[/quote]

Finally I have tested this with a clean installation and still getting the error message:
Quote:Fatal error: Call to undefined method CI_DB::CI_DB() in C:\wamp\www\test\system\database\drivers\odbc\odbc_driver.php on line 53

@Nacho:
The code in database.php:

Code:
$db['default']['hostname'] = "Driver={SQL Server Native Client 10.0};Server=localhost;Database=myTestDB;";
$db['default']['username'] = "myTestUser";
$db['default']['password'] = "mySecret";
$db['default']['database'] = "";
$db['default']['dbdriver'] = "odbc";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = FALSE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";



Bug in ODBC-driver constructor - El Forum - 02-11-2011

[eluser]MVUG[/eluser]
mmm I tested it also, but I don't get an error...


Bug in ODBC-driver constructor - El Forum - 02-12-2011

[eluser]CI_adis[/eluser]
[quote author="MVUG" date="1297489550"]mmm I tested it also, but I don't get an error...[/quote]

So it is working for you?? I use MSSQL 2008 R2, and you?