[eluser]cemaleker[/eluser]
Is there any way to extend core DB driver?
I just found there's a problem with limit on mssql active records driver. I am trying to extend CI_DB_mssql_driver to fix the issue. But my class doesn't load automatically as a core class. It's probably because of the code at DB.php line 132.
Code:
$driver = 'CI_DB_'.$params['dbdriver'].'_driver';
I think that line should first check any core extension classes and load it if exists.
Code:
if(class_exists($config['subclass_prefix'].'DB_'.$params['dbdriver'].'_driver')) {
$driver = $config['subclass_prefix'].'DB_'.$params['dbdriver'].'_driver'
}
else {
$driver = 'CI_DB_'.$params['dbdriver'].'_driver';
}
Well I found a solution but I can't change CI library because we use a centralized library. Is there a way to load my core class inside application directory?