batmanljy 2013-07-25 19:28:18 2948次浏览 0条回复 0 0 0

使用gii,ModelCode时出错! 我已经折腾个把星期了,,就是不知道错误的原因是什么。 错误信息:

CDbConnection failed to open the DB connection: SQLSTATE[IM001]: Driver does not support this function: driver does not support setting attributes

错误代码:framework\gii\generators\model\ModelCode.php if(Yii::app()->{$this->connectionId}===null)

错误原因:CDbConnection.php $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES,$this->emulatePrepare); 主要问题就是出在这句,真高手帮帮忙。。。

    没有找到数据。
您需要登录后才可以回复。登录 | 立即注册