刚学两天,想问下这个问题:
现在我的表的结构是这样的:
mysql> desc user_log_info;
±--------------±-----------------±-----±----±--------±---------------+
| Field | Type | Null | Key | Default | Extra |
±--------------±-----------------±-----±----±--------±---------------+
| user_name | varchar(32) | NO | | NULL | |
| last_url | varchar(256) | YES | | NULL | |
| last_log_time | datetime | YES | | NULL | |
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
±--------------±-----------------±-----±----±--------±---------------+
代码如下:
class user_log_info extends CActiveRecord
{
public static function model($className=CLASS)
{
return parent::model($className);
}
}
class SiteController extends CController
{
public function actionIndex()
{
$info=new user_log_info;
$info->user_name='quxianping';
$info->last_url='xxxxx';
$info->last_log_time='2008-10-10 23:59:59';
$info->save();
}
}
为什么会报错哦?
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2030 This command is not supported in the prepared statement protocol yet
不是很明白,请高人指点!多谢