PDO, MSSQL and FreeTDS
Date: December 12, 2006
From: Todd Wolaver
Hi,
I'm using FreeTDS under Linux to access MSSQL databases, which won' t work with the framework since the PDO driver is dblib not mssql.
$db = Zend_Db::factory('pdo_mssql', $params);
will return:
"The mssql driver is not currently installed"
This is set in the Mssql.php PDO adapter (Zend_Db_Adapter_Pdo_Mssql):
43: protected $_pdoType = 'mssql';
If this is changed to dblib then it works. What would be the best way of implementing the dblib driver without changing the core code of the framework?
Thanks
Todd Wolaver
Zend_Framework 1.6的版本的protected $_pdoType已改為mssql
沒有留言:
張貼留言