2008年10月14日 星期二
2008年10月10日 星期五
2008年10月9日 星期四
2008年10月8日 星期三
Zend_Framework 1.6的版本的protected $_pdoType已改為mssql
http://mlblog.osdir.com/php.zend.framework.general/2006-12/index.shtml
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
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
訂閱:
文章 (Atom)